Add build-clan module

This commit is contained in:
Johannes Kirschbauer
2024-07-31 18:37:17 +02:00
parent f6daaf79a7
commit 8fd09b8403
11 changed files with 820 additions and 297 deletions

18
lib/build-clan/eval.nix Normal file
View File

@@ -0,0 +1,18 @@
{
lib,
nixpkgs,
clan-core,
specialArgs ? { },
}:
# Returns a function that takes self, which should point to the directory of the flake
{ self }:
module:
(lib.evalModules {
specialArgs = {
inherit self clan-core nixpkgs;
} // specialArgs;
modules = [
./interface.nix
module
];
}).config