nixos/transmission: make it possible to use a different home directory (#29138)
This commit is contained in:
parent
4e901ff2d8
commit
4ff9e9e333
@ -6,7 +6,7 @@ let
|
|||||||
cfg = config.services.transmission;
|
cfg = config.services.transmission;
|
||||||
apparmor = config.security.apparmor.enable;
|
apparmor = config.security.apparmor.enable;
|
||||||
|
|
||||||
homeDir = "/var/lib/transmission";
|
homeDir = cfg.home;
|
||||||
downloadDir = "${homeDir}/Downloads";
|
downloadDir = "${homeDir}/Downloads";
|
||||||
incompleteDir = "${homeDir}/.incomplete";
|
incompleteDir = "${homeDir}/.incomplete";
|
||||||
|
|
||||||
@ -69,6 +69,14 @@ in
|
|||||||
default = 9091;
|
default = 9091;
|
||||||
description = "TCP port number to run the RPC/web interface.";
|
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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user