Skip to content

Commit

Permalink
Merge pull request #267319 from ju1m/transmission
Browse files Browse the repository at this point in the history
nixos/transmission: fixes #258793
  • Loading branch information
doronbehar committed Dec 22, 2023
2 parents 6ee48dc + accbc67 commit 0ae2820
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/services/torrent/transmission.nix
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ in
BindPaths =
[ "${cfg.home}/${settingsDir}"
cfg.settings.download-dir
# Transmission may need to read in the host's /run (eg. /run/systemd/resolve)
# or write in its private /run (eg. /run/host).
"/run"
] ++
optional cfg.settings.incomplete-dir-enabled
cfg.settings.incomplete-dir ++
Expand All @@ -324,7 +327,6 @@ in
# an AppArmor profile is provided to get a confinement based upon paths and rights.
builtins.storeDir
"/etc"
"/run"
] ++
optional (cfg.settings.script-torrent-done-enabled &&
cfg.settings.script-torrent-done-filename != null)
Expand All @@ -349,10 +351,10 @@ in
MemoryDenyWriteExecute = true;
NoNewPrivileges = true;
PrivateDevices = true;
PrivateMounts = true;
PrivateMounts = mkDefault true;
PrivateNetwork = mkDefault false;
PrivateTmp = true;
PrivateUsers = true;
PrivateUsers = mkDefault true;
ProtectClock = true;
ProtectControlGroups = true;
# ProtectHome=true would not allow BindPaths= to work across /home,
Expand Down

0 comments on commit 0ae2820

Please sign in to comment.