From 69c606bcc96c4480be8e996c70879e03d5866912 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Thu, 23 Sep 2021 20:47:23 +1200 Subject: [PATCH] transmission: fix error when watch-dir is enabled --- nixos/modules/services/torrent/transmission.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index 34a5219c9594..b8cfcf391215 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -152,6 +152,8 @@ in install -d -m '${cfg.downloadDirPermissions}' -o '${cfg.user}' -g '${cfg.group}' '${cfg.settings.download-dir}' '' + optionalString cfg.settings.incomplete-dir-enabled '' install -d -m '${cfg.downloadDirPermissions}' -o '${cfg.user}' -g '${cfg.group}' '${cfg.settings.incomplete-dir}' + '' + optionalString cfg.settings.watch-dir-enabled '' + install -d -m '${cfg.downloadDirPermissions}' -o '${cfg.user}' -g '${cfg.group}' '${cfg.settings.watch-dir}' ''; assertions = [