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 }; }; };