mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
...depot, without readtree
This commit is contained in:
parent
d8b3918a8f
commit
fbaacf54ed
15 changed files with 42 additions and 46 deletions
|
|
@ -1,7 +1,10 @@
|
|||
{ lib }: { folder, defaultFile ? "default.nix" }: with lib; let
|
||||
folderNames = [ (../../config + "/${folder}") (../../config/trusted + "/${folder}") ];
|
||||
defaultFileFinal = if (defaultFile == "default.nix" && folder == "hosts") then
|
||||
"meta.nix"
|
||||
else defaultFile;
|
||||
folderModLists = map (folderName: modList {
|
||||
modulesDir = folderName;
|
||||
inherit defaultFile;
|
||||
defaultFile = defaultFileFinal;
|
||||
}) (filter builtins.pathExists folderNames);
|
||||
in foldl modListMerge { } folderModLists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue