2024-08-31 07:51:49 +08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.transmission = {
|
|
|
|
enable = true;
|
|
|
|
openRPCPort = true;
|
|
|
|
webHome = pkgs.flood-for-transmission;
|
|
|
|
settings = {
|
|
|
|
rpc-bind-address = "0.0.0.0";
|
|
|
|
rpc-port = 9080;
|
|
|
|
|
|
|
|
# tailscale
|
|
|
|
rpc-whitelist = "100.*.*.*";
|
|
|
|
rpc-host-whitelist = "blacksteel";
|
|
|
|
|
|
|
|
incomplete-dir = "/mnt/torrent/downloading";
|
|
|
|
download-dir = "/mnt/torrent";
|
|
|
|
|
|
|
|
speed-limit-up-enabled = true;
|
2025-01-18 16:08:59 +08:00
|
|
|
speed-limit-up = 2 * 1000;
|
2024-08-31 07:51:49 +08:00
|
|
|
speed-limit-down-enabled = true;
|
2025-01-18 16:08:59 +08:00
|
|
|
speed-limit-down = 32 * 1000;
|
2024-08-31 07:51:49 +08:00
|
|
|
|
|
|
|
ratio-limit-enabled = true;
|
|
|
|
ratio-limit = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|