summary refs log tree commit diff
path: root/nixos/modules/services/torrent/transmission.nix
diff options
context:
space:
mode:
authorRuben Maher <r@rkm.id.au>2017-09-10 05:49:35 +0930
committerJoachim F <joachifm@users.noreply.github.com>2017-09-09 20:19:35 +0000
commit4ff9e9e3330dc974f8ee935468d281881faa8dca (patch)
treeae18840d59a9e8dde9525d44c449a530d8552ac1 /nixos/modules/services/torrent/transmission.nix
parent4e901ff2d89a62e60cbb1b8d4025ef50bef25c51 (diff)
downloadnixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar.gz
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar.bz2
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar.lz
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar.xz
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.tar.zst
nixpkgs-4ff9e9e3330dc974f8ee935468d281881faa8dca.zip
nixos/transmission: make it possible to use a different home directory (#29138)
Diffstat (limited to 'nixos/modules/services/torrent/transmission.nix')
-rw-r--r--nixos/modules/services/torrent/transmission.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix
index 1f319df794b..dd6b585b7e2 100644
--- a/nixos/modules/services/torrent/transmission.nix
+++ b/nixos/modules/services/torrent/transmission.nix
@@ -6,7 +6,7 @@ let
   cfg = config.services.transmission;
   apparmor = config.security.apparmor.enable;
 
-  homeDir = "/var/lib/transmission";
+  homeDir = cfg.home;
   downloadDir = "${homeDir}/Downloads";
   incompleteDir = "${homeDir}/.incomplete";
 
@@ -69,6 +69,14 @@ in
         default = 9091;
         description = "TCP port number to run the RPC/web interface.";
       };
+
+      home = mkOption {
+        type = types.path;
+        default = "/var/lib/transmission";
+        description = ''
+          The directory where transmission will create files.
+        '';
+      };
     };
   };