chore(checks/inventory): regenerate test vars

This commit is contained in:
Johannes Kirschbauer
2025-04-09 17:30:48 +02:00
parent ac940aa8a1
commit 6f7d7e8d98
11 changed files with 48 additions and 66 deletions

View File

@@ -4,13 +4,13 @@ let
inherit (pkgs) lib;
inherit (lib) mkOption flip mapAttrs;
inherit (lib.types) path raw;
inherit (self.clanLib.inventory) buildInventory;
inherit (self.clanLib) buildClan;
nixos-lib = import (pkgs.path + "/nixos/lib") { };
in
(nixos-lib.runTest (
{ config, ... }:
let
serviceConfigs = buildInventory {
result = buildClan {
inventory = config.inventory.inventory;
# TODO: make directory argument optional in buildInventory
directory = config.inventory.directory;
@@ -29,7 +29,7 @@ in
};
};
config = {
nodes = flip mapAttrs serviceConfigs.machines (
nodes = flip mapAttrs result.clanInternals.inventoryClass.machines (
machineName: attrs: {
imports = attrs.machineImports ++ [ self.nixosModules.clanCore ];
clan.core.settings.directory = "${config.inventory.directory}";