refactor: unify evalClanService with evalService

This commit is contained in:
Johannes Kirschbauer
2025-06-26 14:50:35 +02:00
parent fa525304ac
commit 9ef518fa20
13 changed files with 97 additions and 101 deletions

View File

@@ -20,22 +20,7 @@ lib.fix (clanLib: {
clan-core = self;
inherit nixpkgs nix-darwin;
};
evalServiceSchema =
self:
{
moduleSpec,
flakeInputs ? self.inputs,
localModuleSet ? self.clan.modules,
}:
let
resolvedModule = clanLib.inventory.resolveModule {
inherit moduleSpec flakeInputs localModuleSet;
};
in
(clanLib.inventory.evalClanService {
modules = [ resolvedModule ];
prefix = [ ];
}).config.result.api.schema;
evalService = clanLib.callLib ./modules/inventory/distributed-service/evalService.nix { };
# ------------------------------------
# ClanLib functions
evalClan = clanLib.callLib ./modules/inventory/eval-clan-modules { };