Skip to content

Commit

Permalink
feat(nuc): Enable transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Dec 21, 2023
1 parent 7b2197a commit a383785
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions hosts/nuc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
ssh.enable = true;
syncthing.enable = true;
tailscale.enable = true;
transmission.enable = true;
};

# theme.active = "alucard";
Expand Down
16 changes: 7 additions & 9 deletions modules/services/transmission.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ in {
config = mkIf cfg.enable {
services.transmission = {
enable = true;
home = "${config.user.home}/torrents";
settings = {
download-dir = "/data/media/downloads";
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;
rpc-bind-address = "0.0.0.0";
rpc-host-whitelist = "*";
rpc-host-whitelist-enabled = true;
rpc-whitelist = "127.0.0.1,192.168.*.*";
};
};

networking.firewall = {
allowedTCPPorts = [51413];
allowedUDPPorts = [51413];
rpc-port = true;
openPeerPorts = true;
};

user.extraGroups = ["transmission"];
Expand Down

0 comments on commit a383785

Please sign in to comment.