diff options
author | Jakub Sokołowski <jakub@status.im> | 2019-12-30 16:02:36 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-12-31 15:21:29 +0100 |
commit | 3238beab0a32b29eda2a63bf56e67df6e8a1f632 (patch) | |
tree | e5a71007c5ef0ef6820c45cee5f1a75884d18ae5 /nixos/modules/services/torrent/transmission.nix | |
parent | fece1cb894616b92bbdabb546bda27418614496a (diff) | |
download | nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar.gz nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar.bz2 nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar.lz nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar.xz nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.tar.zst nixpkgs-3238beab0a32b29eda2a63bf56e67df6e8a1f632.zip |
nixos/transmission: fix from where service loads config
Currently if you specify home to be someplace else than ~/ for user then Transmissions always attempts to load the config from the default location which is $HOME/.config/transmission-daemon based on documentation: https://github.com/transmission/transmission/wiki/Configuration-Files Which means that the changes done to the config under settingsDir in ExecPreStart have no effect because they are modifying a file that is never loaded. I've added an explicit --config-dir ${settingsDir} to make sure that Transmission loads the correct config file even when home is changed. Signed-off-by: Jakub Sokołowski <jakub@status.im>
Diffstat (limited to 'nixos/modules/services/torrent/transmission.nix')
-rw-r--r-- | nixos/modules/services/torrent/transmission.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index f7a88867b61..aa1acdf7d20 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -118,7 +118,7 @@ in # 1) Only the "transmission" user and group have access to torrents. # 2) Optionally update/force specific fields into the configuration file. serviceConfig.ExecStartPre = preStart; - serviceConfig.ExecStart = "${pkgs.transmission}/bin/transmission-daemon -f --port ${toString config.services.transmission.port}"; + serviceConfig.ExecStart = "${pkgs.transmission}/bin/transmission-daemon -f --port ${toString config.services.transmission.port} --config-dir ${settingsDir}"; serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; serviceConfig.User = cfg.user; serviceConfig.Group = cfg.group; |