diff options
author | lassulus <lassulus@lassul.us> | 2021-01-23 21:08:56 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-01-23 21:12:57 +0100 |
commit | 2970004fb29472d7fcb8b2eef3a71a91c028d0e6 (patch) | |
tree | f2e2b7991e2e8454a53e11da9c0ef552f6553af6 /lass/1systems/yellow/config.nix | |
parent | 1a79d3865e250904507c18d9376ef708e9a6bda8 (diff) |
l yellow.r: use new transmission options
Diffstat (limited to 'lass/1systems/yellow/config.nix')
-rw-r--r-- | lass/1systems/yellow/config.nix | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lass/1systems/yellow/config.nix b/lass/1systems/yellow/config.nix index d400697d7..16762e9a1 100644 --- a/lass/1systems/yellow/config.nix +++ b/lass/1systems/yellow/config.nix @@ -9,30 +9,21 @@ with import <stockholm/lib>; krebs.build.host = config.krebs.hosts.yellow; - system.activationScripts.downloadFolder = '' - mkdir -p /var/download - chown transmission:download /var/download - chown transmission:download /var/download/finished - chmod 775 /var/download - ''; - - users.users.download = { uid = genid "download"; }; users.groups.download.members = [ "transmission" ]; - users.users.transmission.group = mkForce "download"; systemd.services.transmission.bindsTo = [ "openvpn-nordvpn.service" ]; systemd.services.transmission.after = [ "openvpn-nordvpn.service" ]; - systemd.services.transmission.postStart = '' - chmod 775 /var/download/finished - ''; services.transmission = { enable = true; + group = "download"; + downloadDirPermissions = "775"; settings = { download-dir = "/var/download/finished"; incomplete-dir = "/var/download/incoming"; incomplete-dir-enable = true; + rpc-bind-address = "0.0.0.0"; message-level = 1; - umask = "002"; + umask = 18; rpc-whitelist-enabled = false; rpc-host-whitelist-enabled = false; }; |