helm/modules/services/transmission.nix
2020-01-14 00:25:39 -05:00

24 lines
501 B
Nix

{ 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" ];
}