mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-25 13:42:33 -05:00
build out mesh some
This commit is contained in:
parent
29786ab170
commit
60234ec9c1
2 changed files with 20 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
19
hosts/common/core/nebula.nix
Normal file
19
hosts/common/core/nebula.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue