summary refs log tree commit diff
path: root/nixos/modules/services/torrent
diff options
context:
space:
mode:
authorThomas Hobson <thomas@hexf.me>2021-09-23 20:47:23 +1200
committerGitHub <noreply@github.com>2021-09-23 20:47:23 +1200
commit69c606bcc96c4480be8e996c70879e03d5866912 (patch)
treef275a6713ac8d359bc277512946e8f0b7b795e31 /nixos/modules/services/torrent
parentbc2ba06323f101f413abe38736c1330388272ffd (diff)
downloadnixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar.gz
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar.bz2
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar.lz
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar.xz
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.tar.zst
nixpkgs-69c606bcc96c4480be8e996c70879e03d5866912.zip
transmission: fix error when watch-dir is enabled
Diffstat (limited to 'nixos/modules/services/torrent')
-rw-r--r--nixos/modules/services/torrent/transmission.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix
index 34a5219c959..b8cfcf39121 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 = [