From d5260c5544b9dfbe35392d7b4e03ee57d7205628 Mon Sep 17 00:00:00 2001 From: ckie Date: Sun, 26 Nov 2023 05:32:22 +0200 Subject: [PATCH] nixos/transmission: correct typo on systemd StateDirectory systemd would previously create a nonoperational "/var/lib/transmission/watch-dir" directory due to a typo in the StateDirectory array ("watch-dir" -> "watchdir") I have corrected this by using the pre-declared constants for these folder names. --- nixos/modules/services/torrent/transmission.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index b98cb5283a1a..4a3200c1325c 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -333,10 +333,10 @@ in cfg.settings.watch-dir; StateDirectory = [ "transmission" - "transmission/.config/transmission-daemon" - "transmission/.incomplete" - "transmission/Downloads" - "transmission/watch-dir" + "transmission/${settingsDir}" + "transmission/${incompleteDir}" + "transmission/${downloadsDir}" + "transmission/${watchDir}" ]; StateDirectoryMode = mkDefault 750; # The following options are only for optimizing: