Add machinesDirs with default

This commit is contained in:
Johannes Kirschbauer
2024-06-25 12:35:21 +02:00
committed by hsjobeki
parent 26c655ff3c
commit c0293b889c

View File

@@ -71,7 +71,7 @@ let
) machines; ) machines;
} }
# Will be deprecated # Will be deprecated
# {machines = lib.mapAttrs (n: _: {}) machinesDirs;} { machines = lib.mkDefault (lib.mapAttrs (_n: _: { }) machinesDirs); }
# Deprecated interface # Deprecated interface
(if clanName != null then { meta.name = clanName; } else { }) (if clanName != null then { meta.name = clanName; } else { })
@@ -85,9 +85,9 @@ let
# { ${machineName} :: Config } # { ${machineName} :: Config }
serviceConfigs = buildInventory mergedInventory; serviceConfigs = buildInventory mergedInventory;
# machinesDirs = lib.optionalAttrs (builtins.pathExists "${directory}/machines") ( machinesDirs = lib.optionalAttrs (builtins.pathExists "${directory}/machines") (
# builtins.readDir (directory + /machines) builtins.readDir (directory + /machines)
# ); );
machineSettings = machineSettings =
machineName: machineName: