fixes
This commit is contained in:
parent
aa16354a39
commit
bbfbb002d5
2 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,9 @@
|
|||
nix.package = config.pkgsInstances.unstable.lix;
|
||||
environment.variables.EDITOR = "nvim";
|
||||
|
||||
#initialize mesh vpn secret
|
||||
lyn.sops.secrets."all/meshnetwork/gossip_secret" = {};
|
||||
|
||||
# TODO
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
# decrypt gossip secret
|
||||
# change this to comply with you secret management
|
||||
${prefix}.sops.secrets."all/meshnetwork/gossip_secret" = {};
|
||||
gossip_secret_path = config.sops.secrets."all/meshnetwork/gossip_secret".path;
|
||||
|
||||
# function to make a peerlist suitable for wgautomesh
|
||||
|
@ -17,7 +16,7 @@
|
|||
#filter out hosts that have wg.enabled set to false
|
||||
wgEnabledHosts = lib.filterAttrs (_: host: host.wg.enabled or false) hosts;
|
||||
#filter out hosts that don't support IP{$version}
|
||||
filteredHosts = lib.filterAttrs (_: host: host.${version}.public != "") wgEnabledHosts;
|
||||
filteredHosts = lib.filterAttrs (_: host: host.${version} != null) wgEnabledHosts;
|
||||
in
|
||||
lib.mapAttrsToList (name: host: {
|
||||
pubkey = host.wg.pubkey;
|
||||
|
|
Loading…
Reference in a new issue