Files
clan-core/lib/modules/default.nix
2025-06-26 17:37:42 +02:00

29 lines
600 B
Nix

## WARNING: Do not add core logic here.
## This is only a wrapper such that 'clan' can be called as a function.
{
lib,
clan-core,
...
}:
rec {
buildClan =
module: lib.warn "'buildClan' is deprecated. Use 'clan-core.lib.clan' instead" (clan module).config;
clan =
{
self ? lib.warn "Argument: 'self' must be set when using 'buildClan'." null, # Reference to the current flake
...
}@m:
lib.evalModules {
specialArgs = {
inherit
self
;
};
modules = [
m
clan-core.modules.clan.default
];
};
}