summary refs log tree commit diff
path: root/nixos/modules/services/torrent/transmission.nix
diff options
context:
space:
mode:
authorDavid Anderson <dave@natulte.net>2020-10-30 19:03:42 -0700
committerDavid Anderson <dave@natulte.net>2020-10-30 19:03:42 -0700
commit43effbbc59d177f152f83a2cd0d4183b0e201e9b (patch)
treeb9395eb84c75fb1023db4c08f4b778d729de80bf /nixos/modules/services/torrent/transmission.nix
parent1e20b2dce4213b6a79e7fb7d3e1c5dad0ef5430f (diff)
downloadnixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar.gz
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar.bz2
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar.lz
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar.xz
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.tar.zst
nixpkgs-43effbbc59d177f152f83a2cd0d4183b0e201e9b.zip
nixos/transmission: point at the settings dir in cfg.home.
Without this, transmission starts with an empty config when using
a custom home location.

Signed-off-by: David Anderson <dave@natulte.net>
Diffstat (limited to 'nixos/modules/services/torrent/transmission.nix')
-rw-r--r--nixos/modules/services/torrent/transmission.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix
index 014a22bb5a8..aeb58a7194f 100644
--- a/nixos/modules/services/torrent/transmission.nix
+++ b/nixos/modules/services/torrent/transmission.nix
@@ -197,7 +197,7 @@ in
           install -D -m 600 -o '${cfg.user}' -g '${cfg.group}' /dev/stdin \
            '${cfg.home}/${settingsDir}/settings.json'
         '')];
-        ExecStart="${pkgs.transmission}/bin/transmission-daemon -f";
+        ExecStart="${pkgs.transmission}/bin/transmission-daemon -f -g ${cfg.home}/${settingsDir}";
         ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
         User = cfg.user;
         Group = cfg.group;