refactor: clanLib buildClan

This commit is contained in:
Johannes Kirschbauer
2025-06-26 15:20:05 +02:00
parent 11a94893fb
commit e77769bd20
5 changed files with 66 additions and 48 deletions

View File

@@ -4,19 +4,19 @@
{
lib,
clanLib,
...
clan-core,
nixpkgs,
nix-darwin,
}:
rec {
# TODO: rename to clanModule
flakePartsModule = {
_module.args = {
inherit clanLib;
};
imports = [
./clan/default.nix
];
# ------------------------------------
buildClan = buildClanWith {
inherit
clan-core
nixpkgs
nix-darwin
;
};
/**
A function that takes some arguments such as 'clan-core' and returns the 'buildClan' function.
@@ -61,7 +61,7 @@ rec {
modules = [
# buildClan arguments are equivalent to specifying a module
m
flakePartsModule
clanLib.module
];
};
in