1 { pkgs, lib, config, ... }:
3 inherit (config.services) transmission;
4 inherit (config.users) users;
7 users.groups.transmission.members = [
10 networking.nftables.ruleset = ''
11 add rule inet filter net2fw tcp dport ${toString transmission.settings.peer-port} counter accept comment "Transmission"
12 add rule inet filter net2fw udp dport ${toString transmission.settings.peer-port} counter accept comment "Transmission"
13 add rule inet filter fw2net ip protocol udp skuid ${users.transmission.name} counter accept comment "BitTorrent"
15 services.transmission = {
19 download-dir = "Downloads";
20 incomplete-dir-enabled = false;
22 peer-port-random-on-start = false;
23 port-forwarding-enabled = true;
25 rpc-bind-address = "127.0.0.1";
28 rpc-whitelist = "127.0.0.1";
29 rpc-whitelist-enabled = true;
31 speed-limit-up-enabled = true;