From 5d2018aa9109823bf005350c9ec50c85c61ff6d1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 14 Jan 2020 00:25:39 -0500 Subject: [PATCH] Add services/transmission module --- modules/services/transmission.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/services/transmission.nix diff --git a/modules/services/transmission.nix b/modules/services/transmission.nix new file mode 100644 index 00000000..d1e51555 --- /dev/null +++ b/modules/services/transmission.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +{ + services.transmission = { + enable = true; + home = "/data/media/torrents"; + settings = { + incomplete-dir-enabled = true; + rpc-whitelist = "127.0.0.1,192.168.*.*"; + rpc-host-whitelist = "*"; + rpc-host-whitelist-enabled = true; + ratio-limit = 0; + ratio-limit-enabled = true; + }; + }; + + networking.firewall = { + allowedTCPPorts = [ 51413 ]; + allowedUDPPorts = [ 51413 ]; + }; + + my.user.extraGroups = [ "transmission" ]; +}