mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
nebula: Set listen address on hosts with fixed addresses
This commit is contained in:
parent
eee2cebd21
commit
f93908d157
1 changed files with 5 additions and 2 deletions
|
|
@ -76,11 +76,14 @@ in
|
|||
key = config.sops.secrets."nebula/host-key".path;
|
||||
|
||||
tun.device = netCfg.overlay.interface;
|
||||
listen.port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
||||
listen = {
|
||||
host = lib.mkIf (netCfg.underlay.address != null) netCfg.underlay.address;
|
||||
port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
||||
};
|
||||
|
||||
inherit (netCfg.overlay) isLighthouse;
|
||||
lighthouses = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
||||
|
||||
|
||||
isRelay = netCfg.overlay.isLighthouse;
|
||||
relays = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue