{ pkgs, lib, config, ... }: let inherit (config.users) users; in { users.groups.transmission.members = [ users."julm".name ]; services.transmission = { enable = true; home = "/var/torrents"; downloadDirPermissions = "770"; settings = { peer-port = 6882; dht-enabled = true; port-forwarding-enabled = true; peer-port-random-on-start = false; rpc-enabled = true; rpc-port = 9091; rpc-bind-address = "127.0.0.1"; preallocation = 0; rpc-whitelist = "127.0.0.1"; rpc-whitelist-enabled = true; speed-limit-up = 10; speed-limit-up-enabled = true; }; }; }