From 5d5cb5c664c952b3722652791b13a40177657dec Mon Sep 17 00:00:00 2001 From: ibizaman Date: Thu, 12 Oct 2023 22:34:00 -0700 Subject: [PATCH] add enabled plugins to deluge --- modules/deluge.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/deluge.nix b/modules/deluge.nix index 8cded3c..64cb514 100644 --- a/modules/deluge.nix +++ b/modules/deluge.nix @@ -63,6 +63,13 @@ in example = "secrets/torrent.yaml"; }; + enabledPlugins = lib.mkOption { + type = lib.types.listOf lib.types.str; + description = "Plugins to enable, can include those from additionalPlugins."; + example = ["Label"]; + default = []; + }; + additionalPlugins = lib.mkOption { type = lib.types.attrsOf lib.types.path; description = "Location of additional plugins."; @@ -89,6 +96,9 @@ in proxy_tracker_connections = true; type = 4; # HTTP }; + + enabled_plugins = cfg.enabledPlugins; + # TODO: expose these max_active_limit = 10000; max_active_downloading = 30;