fix transmission

This commit is contained in:
Ingolf Wagner 2023-12-11 22:34:17 +01:00
parent 561075076b
commit 058732fa5a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

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