Merge pull request 'lib/facts: rename machineDir -> clanDir' (#1720) from Mic92-main into main
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{ lib, ... }:
|
||||
machineDir:
|
||||
clanDir:
|
||||
let
|
||||
|
||||
allMachineNames = lib.mapAttrsToList (name: _: name) (builtins.readDir machineDir);
|
||||
allMachineNames = lib.mapAttrsToList (name: _: name) (builtins.readDir clanDir);
|
||||
|
||||
getFactPath = fact: machine: "${machineDir}/${machine}/facts/${fact}";
|
||||
getFactPath = fact: machine: "${clanDir}/${machine}/facts/${fact}";
|
||||
|
||||
readFact =
|
||||
fact: machine:
|
||||
|
||||
Reference in New Issue
Block a user