refactor(clan.service): make evalClanService a standalone function to interact with standalone modules

This commit is contained in:
Johannes Kirschbauer
2025-04-29 15:12:44 +02:00
parent 9b5f100ac6
commit a4a1363195
2 changed files with 172 additions and 156 deletions

View File

@@ -1,8 +1,11 @@
{ lib, clanLib }:
let
services = clanLib.callLib ./distributed-service/inventory-adapter.nix { };
in
{
inherit (services) evalClanService mapInstances;
inherit (import ./build-inventory { inherit lib clanLib; }) buildInventory;
interface = ./build-inventory/interface.nix;
mapInstances = clanLib.callLib ./distributed-service/inventory-adapter.nix { };
# Returns the list of machine names
# { ... } -> [ string ]
resolveTags =