Inventory: rename internal inventory toplevel attribute to 'inventoryClass'

This commit is contained in:
Johannes Kirschbauer
2025-03-07 21:24:06 +09:00
committed by clan-bot
parent ba0ed30997
commit a2b76eb5a2
4 changed files with 5 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ let
# map from machine name to service configuration
# { ${machineName} :: Config }
serviceConfigs = (
inventoryClass = (
buildInventory {
inherit inventory directory;
}
@@ -76,7 +76,7 @@ let
(machines.${name} or { })
# Inherit the inventory assertions ?
# { inherit (mergedInventory) assertions; }
{ imports = serviceConfigs.machines.${name}.machineImports or [ ]; }
{ imports = inventoryClass.machines.${name}.machineImports or [ ]; }
(
{
# Settings
@@ -204,7 +204,7 @@ in
clanInternals = {
moduleSchemas = clan-core.lib.modules.getModulesSchema config.inventory.modules;
inherit serviceConfigs;
inherit inventoryClass;
inherit (clan-core) clanModules;
inherit inventoryFile;
inventoryValuesPrios =