lib.facts: assume clanDir instead of machines prefix

This commit is contained in:
Jörg Thalheim
2024-07-09 15:05:00 +02:00
parent a24c183ec5
commit 872a5fdc80

View File

@@ -4,7 +4,7 @@ let
allMachineNames = lib.mapAttrsToList (name: _: name) (builtins.readDir clanDir); allMachineNames = lib.mapAttrsToList (name: _: name) (builtins.readDir clanDir);
getFactPath = machine: fact: "${clanDir}/${machine}/facts/${fact}"; getFactPath = machine: fact: "${clanDir}/machines/${machine}/facts/${fact}";
readFact = readFact =
machine: fact: machine: fact: