From db97556d3dcd9ff5b258f4799828783f6d9374b2 Mon Sep 17 00:00:00 2001 From: Nico Date: Fri, 12 Dec 2025 21:51:14 +1100 Subject: [PATCH] deluge: use a declarative configuration --- modules/services/media/arr.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/modules/services/media/arr.nix b/modules/services/media/arr.nix index 94e4a8b..7765ddb 100644 --- a/modules/services/media/arr.nix +++ b/modules/services/media/arr.nix @@ -75,6 +75,29 @@ web.enable = true; web.openFirewall = false; group = "media"; + + declarative = true; + authFile = "/var/lib/deluge/auth"; + config = { + download_location = "/media/torrents/"; + torrentfiles_location = "/media/torrents/files/"; + copy_torrent_file = true; + + allow_remote = true; + random_port = true; + upnp = true; + + max_active_seeding = 5; + max_active_downloading = 3; + max_active_limit = 8; + + max_download_speed = -1; + max_upload_speed = 10000; # 10 MiB/s + new_release_check = false; + enabled_plugins = [ + "Label" + ]; + }; }; services.caddy.virtualHosts."deluge.${config.homelab.domain}" = {