Add services/transmission module

This commit is contained in:
Henrik Lissner 2020-01-14 00:25:39 -05:00
parent b2801a2532
commit 5d2018aa91
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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