From 651479fde6167bdc8e4113fe4c55707eef10707e Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Thu, 21 Dec 2023 17:03:31 -0600 Subject: [PATCH] feat(nuc): Enable transmission --- hosts/nuc/default.nix | 1 + modules/services/transmission.nix | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/nuc/default.nix b/hosts/nuc/default.nix index b450dbed..54306c63 100644 --- a/hosts/nuc/default.nix +++ b/hosts/nuc/default.nix @@ -37,6 +37,7 @@ ssh.enable = true; syncthing.enable = true; tailscale.enable = true; + transmission.enable = true; }; # theme.active = "alucard"; diff --git a/modules/services/transmission.nix b/modules/services/transmission.nix index a6aaa517..f2b332cb 100644 --- a/modules/services/transmission.nix +++ b/modules/services/transmission.nix @@ -14,8 +14,8 @@ in { config = mkIf cfg.enable { services.transmission = { enable = true; - home = "${config.user.home}/torrents"; settings = { + download-dir = "/data/media/downloads"; incomplete-dir-enabled = true; rpc-whitelist = "127.0.0.1,192.168.*.*"; rpc-host-whitelist = "*"; @@ -25,10 +25,9 @@ in { }; }; - networking.firewall = { - allowedTCPPorts = [51413]; - allowedUDPPorts = [51413]; - }; + rpc-bind-address = "0.0.0.0"; + services.transmission.rpc-port = true; + services.transmission.openPeerPorts = true; user.extraGroups = ["transmission"]; };