From 932bc31b21836abc643635c2af175efa8ff79c33 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 13 Jun 2026 14:20:48 -0500 Subject: transmission container poweredge --- hosts/poweredge/transmission.nix | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 hosts/poweredge/transmission.nix (limited to 'hosts') diff --git a/hosts/poweredge/transmission.nix b/hosts/poweredge/transmission.nix new file mode 100644 index 0000000..11a673e --- /dev/null +++ b/hosts/poweredge/transmission.nix @@ -0,0 +1,48 @@ +{ + containers.transmission-wg = let + home = "/var/lib/transmission"; + download-dir = "${home}/complete"; + incomplete-dir = "${home}/incomplete"; + wg-conf = "${home}/wg0.conf"; + in { + autoStart = true; + privateNetwork = false; # TODO + enableTun = true; + bindMounts = { + "${download-dir}" = { + hostPath = ""; # FIXME + isReadOnly = false; + }; + "${incomplete-dir}" = { + hostPath = ""; # FIXME + isReadOnly = false; + }; + }; + + config = { lib, config, ... }: { + services.transmission = { + inherit home; + enable = true; + + settings = { + inherit download-dir incomplete-dir; + rpc-bind-address = "0.0.0.0"; + rpc-whitelist = "*"; + rpc-whitelist-enable = false; + }; + }; + + #networking.wg-quick.interfaces = { + # wg0.configFile = wg-conf; + #}; + + # TODO remove (#258793) + systemd.services.transmission.serviceConfig = { + RootDirectoryStartOnly = lib.mkForce null; + RootDirectory = lib.mkForce null; + }; + + system.stateVersion = "25.11"; + }; + }; +} -- cgit v1.2.3