Inventory/assertions: add seperate assertion layer
This commit is contained in:
@@ -60,4 +60,21 @@ in
|
||||
'';
|
||||
type = lib.types.attrsOf (lib.types.attrsOf instanceOptions);
|
||||
};
|
||||
options.clan.inventory.assertions = lib.mkOption {
|
||||
default = { };
|
||||
internal = true;
|
||||
type = lib.types.attrsOf (
|
||||
# TODO: use NixOS upstream type
|
||||
lib.types.submodule {
|
||||
options = {
|
||||
assertion = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
};
|
||||
message = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user