diff options
author | Alan Pearce | 2025-01-16 21:11:59 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-16 21:11:59 +0100 |
commit | 6718611a495eeb09fe7ca6cb4afd9291691044a2 (patch) | |
tree | f4838fed0f83576719d3ce5d7232fe6ba9f600e1 /system/linde.nix | |
parent | c068f9cf56bee5bc488bc83edec385641025b504 (diff) | |
download | nixfiles-6718611a495eeb09fe7ca6cb4afd9291691044a2.tar.lz nixfiles-6718611a495eeb09fe7ca6cb4afd9291691044a2.tar.zst nixfiles-6718611a495eeb09fe7ca6cb4afd9291691044a2.zip |
linde: enable IPv4 for transmission
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; |