From 01213d9efff76f517d36069b4e20b0354876cbc8 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 13 Sep 2023 02:12:52 +0800 Subject: [PATCH] nebula: use relay --- modules/system/networking/nebula/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/networking/nebula/default.nix b/modules/system/networking/nebula/default.nix index 8e3f2aff..9399bba7 100644 --- a/modules/system/networking/nebula/default.nix +++ b/modules/system/networking/nebula/default.nix @@ -24,10 +24,11 @@ inputs: firewall.outbound = [ { host = "any"; port = "any"; proto = "any"; } ]; } // ( - if nebula.lighthouse == null then { isLighthouse = true; } + if nebula.lighthouse == null then { isLighthouse = true; isRelay = true; } else { lighthouses = [ "192.168.82.1" ]; + relays = [ "192.168.82.1" ]; staticHostMap."192.168.82.1" = [ "${nebula.lighthouse}:4242" ]; listen.port = 0; }