changed prefix to lyn because that works too now; fixed network.nix defining config values inside the options scope

This commit is contained in:
Lyn 2024-11-13 20:27:18 +01:00
parent c9f1a9a362
commit 6faa9df23b
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
config,
...
}: let
prefix = "meshconfig";
prefix = "lyn";
#define wireguard subnets
wg_subnets = {
@ -125,8 +125,8 @@ in {
description = "All hosts in this network that this config should be aware of";
};
};
${prefix}.network = {
inherit hosts wg_subnets;
};
};
${prefix}.network = {
inherit hosts wg_subnets;
};
}

View file

@ -5,7 +5,7 @@
cfg,
...
}: let
prefix = "meshconfig";
prefix = "lyn";
# function to make a peerlist suitable for wgautomesh
buildPeerlist = version: hosts: let