diff --git a/modules/nixos/nebula.nix b/modules/nixos/nebula.nix index 135c517..517ce4b 100644 --- a/modules/nixos/nebula.nix +++ b/modules/nixos/nebula.nix @@ -152,7 +152,8 @@ in listen = { host = "0.0.0.0"; - port = cfg.port; + # Lighthouses and relays need a fixed port; regular nodes use 0 (OS-assigned) + port = if (cfg.isLighthouse || cfg.isRelay) then cfg.port else null; }; lighthouses = lib.optionals (!cfg.isLighthouse) [ cfg.lighthouseNebulaIp ];