From f35e8c755c97dcea38c321d9eae334eb4d654ff0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Apr 2026 17:14:12 -0500 Subject: [PATCH] fix: only set listen.port on lighthouse/relay nodes (regular nodes use OS-assigned port 0) --- modules/nixos/nebula.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ];