Skip to content

Commit

Permalink
nixos/transmission: make it possible to use a different home directory (
Browse files Browse the repository at this point in the history
  • Loading branch information
eqyiel authored and joachifm committed Sep 9, 2017
1 parent 4e901ff commit 4ff9e9e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nixos/modules/services/torrent/transmission.nix
Expand Up @@ -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";

Expand Down Expand Up @@ -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.
'';
};
};
};

Expand Down

0 comments on commit 4ff9e9e

Please sign in to comment.