clanInternals.inventory: expose used priorities
This commit is contained in:
@@ -101,6 +101,7 @@ in
|
|||||||
# Those options are interfaced by the CLI
|
# Those options are interfaced by the CLI
|
||||||
# We don't specify the type here, for better performance.
|
# We don't specify the type here, for better performance.
|
||||||
inventory = lib.mkOption { type = lib.types.raw; };
|
inventory = lib.mkOption { type = lib.types.raw; };
|
||||||
|
inventoryValuesPrios = lib.mkOption { type = lib.types.raw; };
|
||||||
# all inventory module schemas
|
# all inventory module schemas
|
||||||
moduleSchemas = lib.mkOption { type = lib.types.raw; };
|
moduleSchemas = lib.mkOption { type = lib.types.raw; };
|
||||||
inventoryFile = lib.mkOption { type = lib.types.raw; };
|
inventoryFile = lib.mkOption { type = lib.types.raw; };
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ in
|
|||||||
inherit serviceConfigs;
|
inherit serviceConfigs;
|
||||||
inherit (clan-core) clanModules;
|
inherit (clan-core) clanModules;
|
||||||
inherit inventoryFile;
|
inherit inventoryFile;
|
||||||
|
inventoryValuesPrios = (clan-core.lib.values.getPrios { options = inventory.options; });
|
||||||
inventory = config.inventory;
|
inventory = config.inventory;
|
||||||
meta = config.inventory.meta;
|
meta = config.inventory.meta;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ lib, config, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
types = lib.types;
|
types = lib.types;
|
||||||
|
|
||||||
@@ -92,6 +97,12 @@ in
|
|||||||
./assertions.nix
|
./assertions.nix
|
||||||
];
|
];
|
||||||
options = {
|
options = {
|
||||||
|
options = lib.mkOption {
|
||||||
|
internal = true;
|
||||||
|
visible = false;
|
||||||
|
type = types.raw;
|
||||||
|
default = options;
|
||||||
|
};
|
||||||
modules = lib.mkOption {
|
modules = lib.mkOption {
|
||||||
type = types.attrsOf types.path;
|
type = types.attrsOf types.path;
|
||||||
default = { };
|
default = { };
|
||||||
|
|||||||
Reference in New Issue
Block a user