mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-23 20:30:52 +01:00
feat: choose interface for deluge
This commit is contained in:
parent
4f6593a2a1
commit
f3f3449329
2 changed files with 9 additions and 1 deletions
|
@ -60,6 +60,7 @@
|
|||
tv.enable = true;
|
||||
music.enable = true;
|
||||
};
|
||||
luj.deluge.interface = "wg0";
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
@ -21,6 +21,11 @@ in
|
|||
description = "Group under which deluge runs.";
|
||||
};
|
||||
|
||||
interface = mkOption {
|
||||
type = types.str;
|
||||
description = "Interface deluge will use.";
|
||||
};
|
||||
|
||||
nginx.enable = mkEnableOption "activate nginx";
|
||||
nginx.subdomain = mkOption { type = types.str; };
|
||||
};
|
||||
|
@ -41,8 +46,10 @@ in
|
|||
authFile = "/run/agenix/deluge-webui-password";
|
||||
web.enable = true;
|
||||
config = {
|
||||
download_location = "/home/mediaserver/downloads/complete/";
|
||||
download_location = "${config.users.users.${cfg.user}.home}/downloads/";
|
||||
allow_remote = true;
|
||||
outgoing_interface = cfg.interface;
|
||||
listen_interface = cfg.interface;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue