mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Compatibility, bringing Sumireko into the fold. Deprecate katexprs.
This commit is contained in:
parent
efae399c70
commit
40edeef897
39 changed files with 879 additions and 175 deletions
13
overlays/lib/domain-merge.nix
Normal file
13
overlays/lib/domain-merge.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ lib }: { folder, defaultFile ? "default.nix", folderPaths ? [ ] }: with lib; let
|
||||
defaultFileFinal =
|
||||
if (defaultFile == "default.nix" && folder == "hosts") then
|
||||
"nixos.nix"
|
||||
else defaultFile;
|
||||
folderModLists = map
|
||||
(folderPath: modList {
|
||||
modulesDir = folderPath;
|
||||
defaultFile = defaultFileFinal;
|
||||
})
|
||||
(filter builtins.pathExists folderPaths);
|
||||
in
|
||||
foldl modListMerge { } folderModLists
|
||||
Loading…
Add table
Add a link
Reference in a new issue