Skip to content

Commit 4ff9e9e

Browse files
eqyieljoachifm
authored andcommittedSep 9, 2017
nixos/transmission: make it possible to use a different home directory (#29138)
1 parent 4e901ff commit 4ff9e9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎nixos/modules/services/torrent/transmission.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let
66
cfg = config.services.transmission;
77
apparmor = config.security.apparmor.enable;
88

9-
homeDir = "/var/lib/transmission";
9+
homeDir = cfg.home;
1010
downloadDir = "${homeDir}/Downloads";
1111
incompleteDir = "${homeDir}/.incomplete";
1212

@@ -69,6 +69,14 @@ in
6969
default = 9091;
7070
description = "TCP port number to run the RPC/web interface.";
7171
};
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+
};
7280
};
7381
};
7482

0 commit comments

Comments
 (0)
Please sign in to comment.