Inventory: init module merge & validation logic for inventory

This commit is contained in:
Johannes Kirschbauer
2024-06-22 21:31:01 +02:00
committed by hsjobeki
parent c89080deb4
commit 2f8b782a1f
9 changed files with 198 additions and 168 deletions

View File

@@ -13,7 +13,6 @@ let
inherit lib clan-core;
inherit (inputs) nixpkgs;
};
cfg = config.clan;
in
{
@@ -91,6 +90,7 @@ in
clanInternals = lib.mkOption {
type = lib.types.submodule {
options = {
inventory = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
meta = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
all-machines-json = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
machines = lib.mkOption { type = lib.types.attrsOf (lib.types.attrsOf lib.types.unspecified); };