2022-05-03 02:13:42 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2022-05-03 09:45:36 +00:00
|
|
|
services.transmission.enable = true;
|
2022-05-03 02:13:42 +00:00
|
|
|
services.transmission.settings = {
|
|
|
|
rpc-bind-address = "0.0.0.0";
|
2022-05-03 09:45:36 +00:00
|
|
|
#rpc-host-whitelist = "bt.uninsane.org";
|
|
|
|
#rpc-whitelist = "*.*.*.*";
|
|
|
|
rpc-authentication-required = true;
|
|
|
|
rpc-username = "colin";
|
|
|
|
# salted pw. to regenerate, set this plaintext, run nixos-rebuild, and then find the salted pw in:
|
|
|
|
# /var/lib/transmission/.config/transmission-daemon/settings.json
|
|
|
|
rpc-password = "{503fc8928344f495efb8e1f955111ca5c862ce0656SzQnQ5";
|
|
|
|
rpc-whitelist-enabled = false;
|
|
|
|
|
|
|
|
download-dir = "/mnt/storage/opt/uninsane/media/";
|
|
|
|
};
|
|
|
|
|
2022-05-04 00:10:50 +00:00
|
|
|
systemd.services.transmission.after = ["wireguard-wg0.service"];
|
2022-05-03 09:45:36 +00:00
|
|
|
systemd.services.transmission.serviceConfig = {
|
|
|
|
# run this behind the OVPN static VPN
|
|
|
|
NetworkNamespacePath = "/run/netns/ovpns";
|
2022-05-03 02:13:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|