Inventory: add global imports

This commit is contained in:
Johannes Kirschbauer
2024-07-15 16:38:54 +02:00
parent c80e2538c4
commit 9afed2295d
3 changed files with 32 additions and 4 deletions

View File

@@ -106,7 +106,10 @@ let
# map from machine name to service configuration
# { ${machineName} :: Config }
serviceConfigs = buildInventory mergedInventory;
serviceConfigs = buildInventory {
inventory = mergedInventory;
inherit directory;
};
machinesDirs = lib.optionalAttrs (builtins.pathExists "${directory}/machines") (
builtins.readDir (directory + /machines)