From 058732fa5aba1c06dc5ac316d3b1c1cd7754b2a5 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 11 Dec 2023 22:34:17 +0100 Subject: [PATCH] fix transmission --- nixos/machines/robi/media-transmission2.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/machines/robi/media-transmission2.nix b/nixos/machines/robi/media-transmission2.nix index 2e51ac2..931131c 100644 --- a/nixos/machines/robi/media-transmission2.nix +++ b/nixos/machines/robi/media-transmission2.nix @@ -35,6 +35,7 @@ in services.transmission = { enable = true; + #extraFlags = [ "--log-info" ]; settings = { download-dir = "/media/torrent/downloads"; incomplete-dir = "/media/torrent/incomplete"; @@ -102,6 +103,12 @@ in "/media" # this is needed otherwise cp -l is not working "/var/lib/transmission/.config/transmission-daemon" ]; + BindReadOnlyPaths = lib.mkForce [ builtins.storeDir "/etc" ]; + PrivateMounts = lib.mkForce false; + PrivateUsers = lib.mkForce false; + RootDirectoryStartOnly = lib.mkForce false; + RootDirectory = lib.mkForce "/var/lib"; + ExecStartPre = lib.mkForce [ ]; # this prevents configuration creation, but fixes startup problems }; }; };