From 6c4a91c31de75fadcd5b23fbd42b76de76480fd7 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Thu, 24 Jul 2025 10:12:31 -0400 Subject: [PATCH] build out mesh some --- hosts/common/core/nebula.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/hosts/common/core/nebula.nix b/hosts/common/core/nebula.nix index dcd2954..b28af41 100644 --- a/hosts/common/core/nebula.nix +++ b/hosts/common/core/nebula.nix @@ -2,18 +2,12 @@ config, lib, inputs, - hostSpec, ... }: let s = inputs.nix-secrets.network.mesh; -in - if builtins.hasAttr "${hostSpec.hostName}" s.hosts - then lib.warn "Hey you don't have a nebula host config for this host, we'll still build but you should fix this ASAP since you won't be inside the mesh. If you don't know how to do this please talk to your computer administrator (me haha)" - else { - services.nebula.networks.wce = { - inherit (s) ca; - inherit (s.hostSpec.hostName) cert key; - enable = true; - isLighthouse = lib.mkDefault false; - }; - } +in { + warnings = + if !builtins.hasAttr "${config.hostSpec.hostName}" s.hosts + then [''Hey you don't have a nebula config for this host, you should fix this ASAP so you can be connected to the mesh. If you don't know how to do this then contact your admin''] + else []; +}