clanInternals.inventory: expose used priorities

This commit is contained in:
Johannes Kirschbauer
2024-12-04 17:41:41 +01:00
parent de78a85324
commit 7ac8b70ebd
3 changed files with 14 additions and 1 deletions

View File

@@ -101,6 +101,7 @@ in
# Those options are interfaced by the CLI
# We don't specify the type here, for better performance.
inventory = lib.mkOption { type = lib.types.raw; };
inventoryValuesPrios = lib.mkOption { type = lib.types.raw; };
# all inventory module schemas
moduleSchemas = lib.mkOption { type = lib.types.raw; };
inventoryFile = lib.mkOption { type = lib.types.raw; };

View File

@@ -183,6 +183,7 @@ in
inherit serviceConfigs;
inherit (clan-core) clanModules;
inherit inventoryFile;
inventoryValuesPrios = (clan-core.lib.values.getPrios { options = inventory.options; });
inventory = config.inventory;
meta = config.inventory.meta;