build-clan: fix specialArgs not passed

This commit is contained in:
DavHau
2024-08-04 13:06:28 +07:00
parent 4c73b64c6e
commit a4ca900427
3 changed files with 27 additions and 7 deletions

View File

@@ -3,16 +3,17 @@
nixpkgs,
clan-core,
specialArgs ? { },
self,
}:
# 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
{ inherit specialArgs; }
];
}).config