move to mkModuleTree for host configuration

This commit is contained in:
Charlie Root 2024-09-08 20:35:33 +02:00
commit 3c4bf8040c
13 changed files with 42 additions and 31 deletions

View file

@ -5,8 +5,8 @@
}: let
inherit (inputs) self;
inherit (lib) mkDefault nixosSystem recursiveUpdate;
inherit (lib.lists) singleton concatLists flatten;
inherit (lib.extendedLib.modules) mkModuleTree';
inherit (lib.lists) singleton concatLists;
mkSystem = {
withSystem,
system,
@ -41,18 +41,6 @@
];
}
);
mkModulesForSystem = {
hostname,
modulePath ? ./modules,
...
} @ args:
flatten (
concatLists [
(self.outPath + ./.)
(mkModuleTree' {path = self.outPath + modulePath;})
# singleton
]
);
in {
inherit mkSystem mkModulesForSystem;
inherit mkSystem;
}