added transmission webui

This commit is contained in:
baritone 2025-03-25 15:08:22 +01:00
parent e97d5e7152
commit 8d6b83fec2

View file

@ -10,7 +10,7 @@
sonarr.port = 8989; sonarr.port = 8989;
radarr.port = 7878; radarr.port = 7878;
jackett.port = 9117; jackett.port = 9117;
# transmission.port = 9091; transmission.port = 9091;
}; };
vm-index = 1; vm-index = 1;
@ -18,6 +18,7 @@
vm-name = "auto-torrent"; vm-name = "auto-torrent";
vpn-endpoint = "193.32.248.70"; vpn-endpoint = "193.32.248.70";
enable-services = true; enable-services = true;
wg-config = "/mnt/wg.confg";
ports-list = pkgs.lib.attrsets.mapAttrsToList (name: value: value.port) ports; ports-list = pkgs.lib.attrsets.mapAttrsToList (name: value: value.port) ports;
in { in {
@ -110,7 +111,7 @@ in {
serviceConfig = { serviceConfig = {
type = "oneshot"; type = "oneshot";
ExecStart = pkgs.writeShellScript "wgconf.sh" '' ExecStart = pkgs.writeShellScript "wgconf.sh" ''
${pkgs.wireguard-tools}/bin/wg-quick up /mnt/wg.conf ${pkgs.wireguard-tools}/bin/wg-quick up ${wg-config}
''; '';
RemainAfterExit = "yes"; RemainAfterExit = "yes";
}; };
@ -147,12 +148,28 @@ in {
services.transmission = pkgs.lib.mkIf enable-services { services.transmission = pkgs.lib.mkIf enable-services {
enable = true; enable = true;
openFirewall = true; openPeerPorts = true;
openRPCPort = true; openRPCPort = true;
home = "/mnt/transmission"; home = "/mnt/transmission";
settings.download-dir = "/mnt/transmission"; webHome = "${pkgs.flood-for-transmission}";
settings.incomplete-dir = "/mnt/transmission/.incomplete"; credentialsFile = "/mnt/transmission-secrets.json";
settings = {
download-dir = "/mnt/transmission";
incomplete-dir = "/mnt/transmission/.incomplete";
peer-port-random-low = 65500;
peer-port-random-high = 65535;
peer-port-random-on-start = true;
download-queue-enabled = false;
rpc-host-whitelist = builtins.concatStringsSep "," ["transmission.spoodythe.one" "10.0.101.10" "10.0.${toString vm-index}.254" host];
rpc-whitelist = builtins.concatStringsSep "," ["127.0.0.1" "10.0.101.10" "10.0.${toString vm-index}.254" host];
rpc-bind-address = "0.0.0.0";
rpc-authentication-required = true;
rpc-username = "admin";
};
downloadDirPermissions = "775"; downloadDirPermissions = "775";
# performanceNetParameters = true;
# extraFlags = ["--log-info" "--logfile" "/var/log/transmission.log"];
}; };
# debugging # debugging