nebula: Enable relay support

This commit is contained in:
SebastianStork 2026-02-08 18:48:31 +01:00
parent d676c79d58
commit 2b85b2df9c
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -71,7 +71,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 = 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 = lib.mkIf (!netCfg.overlay.isLighthouse) (