Inventory: init first implementation #1638
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user