feat(lib/buildClan): turn lib/build-clan into a 'buildClanModule' with sub-features such as 'buildClan' and 'flakePartsModule'

This commit is contained in:
Johannes Kirschbauer
2025-04-01 15:39:02 +02:00
parent 6bc98c14e5
commit 3c2708b263
3 changed files with 54 additions and 33 deletions

View File

@@ -20,10 +20,12 @@ lib.fix (clanLib: {
clan-core = self;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
buildClan = import ./build-clan {
buildClanModule = import ./build-clan {
inherit lib nixpkgs;
clan-core = self;
};
buildClan = clanLib.buildClanModule.buildClan;
# ------------------------------------
# Lib functions that don't depend on 'self'
inventory = clanLib.callLib ./inventory { };