nixos-knossos/services/transmission.nix

26 lines
500 B
Nix
Raw Normal View History

2025-04-10 13:45:57 +08:00
{ config, pkgs, ... }:
{
# https://mynixos.com/nixpkgs/options/services.transmission
services.transmission = {
2025-04-10 13:45:57 +08:00
enable = true;
package = pkgs.transmission_4;
2025-04-10 13:45:57 +08:00
openFirewall = true;
openPeerPorts = true;
openRPCPort = true;
settings = {
rpc-bind-address = "0.0.0.0";
2025-05-05 11:32:02 +08:00
rpc-whitelist = "127.0.0.1,100.86.169.8,100.120.170.60"; #Whitelist your remote machine (10.0.0.1 in this example)
};
2025-05-05 11:32:02 +08:00
# environment.systemPackages = [
# pkgs.transmission
# ];
2025-04-10 13:45:57 +08:00
};
2025-04-10 13:45:57 +08:00
}