configuration.nix/hosts/rico0/services/apps/transmission.nix

26 lines
620 B
Nix
Raw Normal View History

2024-07-04 01:13:49 +05:30
{ pkgs, ... }: {
services.transmission = {
enable = true;
package = pkgs.transmission_4;
downloadDirPermissions = "775";
home = "/mnt/data/Torrents";
webHome = pkgs.flood-for-transmission;
openPeerPorts = true;
extraFlags = [
"--encryption-required"
"--no-portmap"
"--dht"
"--lpd"
2024-07-04 23:01:53 +05:30
"--allowed"
"127.0.0.1,10.10.10.*"
2024-07-04 01:13:49 +05:30
];
settings = {
peer-port = 51515;
rpc-bind-address = "10.10.10.10";
rpc-port = 9091;
watch-dir-enabled = true;
};
};
systemd.services.transmission.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
2024-07-04 01:13:49 +05:30
}