add enabled plugins to deluge
This commit is contained in:
parent
d53dba45ea
commit
5d5cb5c664
1 changed files with 10 additions and 0 deletions
|
@ -63,6 +63,13 @@ in
|
||||||
example = "secrets/torrent.yaml";
|
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 {
|
additionalPlugins = lib.mkOption {
|
||||||
type = lib.types.attrsOf lib.types.path;
|
type = lib.types.attrsOf lib.types.path;
|
||||||
description = "Location of additional plugins.";
|
description = "Location of additional plugins.";
|
||||||
|
@ -89,6 +96,9 @@ in
|
||||||
proxy_tracker_connections = true;
|
proxy_tracker_connections = true;
|
||||||
type = 4; # HTTP
|
type = 4; # HTTP
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enabled_plugins = cfg.enabledPlugins;
|
||||||
|
|
||||||
# TODO: expose these
|
# TODO: expose these
|
||||||
max_active_limit = 10000;
|
max_active_limit = 10000;
|
||||||
max_active_downloading = 30;
|
max_active_downloading = 30;
|
||||||
|
|
Loading…
Reference in a new issue