build out mesh some

This commit is contained in:
TheWanderingCrow 2025-07-24 09:51:55 -04:00
parent 29786ab170
commit 60234ec9c1
2 changed files with 20 additions and 0 deletions

View file

@ -27,6 +27,7 @@ in {
"hosts/common/core/editor.nix"
"hosts/common/core/fonts.nix"
"hosts/common/core/sudo.nix"
"hosts/common/core/nebula.nix"
"hosts/common/users/primary"
"hosts/common/users/primary/${platform}.nix"
"modules/common"

View file

@ -0,0 +1,19 @@
{
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;
};
}