lol

nixos/transmission: make it possible to use a different home directory (#29138)

authored by

Ruben Maher and committed by
Joachim F
4ff9e9e3 4e901ff2

+9 -1
+9 -1
nixos/modules/services/torrent/transmission.nix
··· 6 cfg = config.services.transmission; 7 apparmor = config.security.apparmor.enable; 8 9 - homeDir = "/var/lib/transmission"; 10 downloadDir = "${homeDir}/Downloads"; 11 incompleteDir = "${homeDir}/.incomplete"; 12 ··· 68 type = types.int; 69 default = 9091; 70 description = "TCP port number to run the RPC/web interface."; 71 }; 72 }; 73 };
··· 6 cfg = config.services.transmission; 7 apparmor = config.security.apparmor.enable; 8 9 + homeDir = cfg.home; 10 downloadDir = "${homeDir}/Downloads"; 11 incompleteDir = "${homeDir}/.incomplete"; 12 ··· 68 type = types.int; 69 default = 9091; 70 description = "TCP port number to run the RPC/web interface."; 71 + }; 72 + 73 + home = mkOption { 74 + type = types.path; 75 + default = "/var/lib/transmission"; 76 + description = '' 77 + The directory where transmission will create files. 78 + ''; 79 }; 80 }; 81 };