Merge pull request 'lib/facts: rename machineDir -> clanDir' (#1720) from Mic92-main into main
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
machineDir:
|
clanDir:
|
||||||
let
|
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 =
|
readFact =
|
||||||
fact: machine:
|
fact: machine:
|
||||||
|
|||||||
Reference in New Issue
Block a user