From a21e3f0943d3899f9346ebfadabc66ab7b583f67 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Wed, 18 Oct 2023 19:52:35 -0700 Subject: [PATCH] add outgoing interface to deluge --- modules/deluge.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/deluge.nix b/modules/deluge.nix index cfb901e..94f8ce9 100644 --- a/modules/deluge.nix +++ b/modules/deluge.nix @@ -45,6 +45,12 @@ in default = null; }; + outgoingInterface = lib.mkOption { + description = lib.mdDoc "If not null, sets up a deluge to bind all outgoing traffic to the given interface."; + type = lib.types.nullOr lib.types.str; + default = null; + }; + downloadLocation = lib.mkOption { type = lib.types.str; description = "Folder where torrents gets downloaded"; @@ -103,6 +109,7 @@ in proxy_tracker_connections = true; type = 4; # HTTP }; + outgoing_interface = cfg.outgoingInterface; enabled_plugins = cfg.enabledPlugins;