mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +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,7 +76,10 @@ in
|
||||||
key = config.sops.secrets."nebula/host-key".path;
|
key = config.sops.secrets."nebula/host-key".path;
|
||||||
|
|
||||||
tun.device = netCfg.overlay.interface;
|
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;
|
inherit (netCfg.overlay) isLighthouse;
|
||||||
lighthouses = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
lighthouses = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue