fix transmission
This commit is contained in:
parent
561075076b
commit
058732fa5a
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,7 @@ in
|
||||||
|
|
||||||
services.transmission = {
|
services.transmission = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
#extraFlags = [ "--log-info" ];
|
||||||
settings = {
|
settings = {
|
||||||
download-dir = "/media/torrent/downloads";
|
download-dir = "/media/torrent/downloads";
|
||||||
incomplete-dir = "/media/torrent/incomplete";
|
incomplete-dir = "/media/torrent/incomplete";
|
||||||
|
@ -102,6 +103,12 @@ in
|
||||||
"/media" # this is needed otherwise cp -l is not working
|
"/media" # this is needed otherwise cp -l is not working
|
||||||
"/var/lib/transmission/.config/transmission-daemon"
|
"/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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue