Chore: init settings submdule, move clanDir into settings submodule

This commit is contained in:
Johannes Kirschbauer
2024-12-31 14:08:25 +01:00
parent 5ba0dff53a
commit 318a4f2d86
31 changed files with 111 additions and 75 deletions

View File

@@ -5,8 +5,8 @@
...
}:
let
clanDir = config.clan.core.clanDir;
machineDir = clanDir + "/machines/";
dir = config.clan.core.settings.directory;
machineDir = dir + "/machines/";
syncthingPublicKeyPath = machines: machineDir + machines + "/facts/syncthing.pub";
machinesFileSet = builtins.readDir machineDir;
machines = lib.mapAttrsToList (name: _: name) machinesFileSet;