lib/jsonschema: fix enum support

This commit is contained in:
Michael Hoang
2025-04-06 20:48:25 +02:00
parent 8bc2112e45
commit c2eaf74df5
5 changed files with 86 additions and 9 deletions

View File

@@ -50,6 +50,16 @@
];
description = "A list of enabled kernel modules";
};
# enum
colour = lib.mkOption {
type = lib.types.enum [
"red"
"blue"
"green"
];
default = "red";
description = "The colour of the user";
};
destinations = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (