diff options
Diffstat (limited to 'system/linde.nix')
-rw-r--r-- | system/linde.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/system/linde.nix b/system/linde.nix index a2eae51f..1dc309a7 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -173,6 +173,7 @@ in 6379 9418 6922 + config.services.transmission.settings.peer-port ]; allowedUDPPorts = [ 53 @@ -180,6 +181,7 @@ in 3478 6885 # DHT 6922 + config.services.transmission.settings.peer-port ]; trustedInterfaces = [ "tailscale0" ]; }; @@ -1115,7 +1117,6 @@ in containers.bt = let externalDir = "/srv/transmission"; - localAddress6 = "fc00::9091"; tsHostname = "bt.${ts-domain}"; tsPort = 41643; hostConfig = config; @@ -1126,10 +1127,13 @@ in enableTun = true; privateNetwork = true; hostAddress6 = "fc00::1"; - inherit localAddress6; - forwardPorts = [{ - hostPort = tsPort; - }]; + localAddress6 = "fc00::9091"; + hostAddress = "10.231.91.1"; + localAddress = "10.231.91.10"; + forwardPorts = [ + { hostPort = tsPort; } + { hostPort = config.services.transmission.settings.peer-port; } + ]; bindMounts = { ${config.services.transmission.home} = { hostPath = hostConfig.services.transmission.home; @@ -1186,9 +1190,11 @@ in webHome = pkgs.flood-for-transmission; settings = { utp-enabled = true; - incomplete-dir-enabled = false; + incomplete-dir-enabled = true; incomplete-dir = "/srv/transmission/leeching"; download-dir = "/srv/transmission/seeding"; + watch-dir = "/srv/transmission/watch"; + watch-dir-enabled = true; rpc-bind-address = "::1"; rpc-whitelist-enabled = false; rpc-host-whitelist = tsHostname; |