Files
clan-core/lib/modules/function-adapter.nix
Johannes Kirschbauer e1cb17db35 build-clan: export default.nix that injects clanLib
This should be the single entry point, that includes clanLib
instead of importApply propagation
2025-06-25 12:07:59 +02:00

28 lines
445 B
Nix

{
lib,
nixpkgs,
nix-darwin ? null,
clan-core,
self,
specialArgs ? { },
}:
# Returns a function that takes self, which should point to the directory of the flake
module:
(lib.evalModules {
specialArgs = {
inherit
self
clan-core
nixpkgs
nix-darwin
;
};
modules = [
(import ./clan/default.nix { inherit (clan-core) clanLib; })
module
{
inherit specialArgs;
}
];
}).config