Files
clan-core/lib/build-clan/eval.nix
Johannes Kirschbauer 8b0212b828 Add build-clan module
2024-08-03 12:05:09 +02:00

19 lines
315 B
Nix

{
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