summaryrefslogtreecommitdiffstats
path: root/lass/1systems
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-12-09 17:03:44 +0100
committerlassulus <lassulus@lassul.us>2018-12-09 17:03:44 +0100
commit1a3980bf2eeeb925305312f68e2b8033fc8af78d (patch)
tree6d99bb9dd643878fe04efeaa059a2f6e4e63053b /lass/1systems
parentc739f81e5bd62a5dff2def3a45e7c0ac71b08f52 (diff)
l yellow.r: fix transmission stuff
Diffstat (limited to 'lass/1systems')
-rw-r--r--lass/1systems/yellow/config.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/lass/1systems/yellow/config.nix b/lass/1systems/yellow/config.nix
index ff7b23687..58fa564a1 100644
--- a/lass/1systems/yellow/config.nix
+++ b/lass/1systems/yellow/config.nix
@@ -19,7 +19,11 @@ with import <stockholm/lib>;
users.groups.download.members = [ "transmission" ];
users.users.transmission.group = mkForce "download";
- systemd.services.transmission.serviceConfig.bindsTo = [ "openvpn-nordvpn.service" ];
+ 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;
settings = {
@@ -52,6 +56,9 @@ with import <stockholm/lib>;
autoindex on;
'';
};
+ locations."/dl".extraConfig = ''
+ return 301 /;
+ '';
locations."/" = {
root = "/var/download/finished";
extraConfig = ''