feat(jsonschema): add test for attrsof submodule

This commit is contained in:
Johannes Kirschbauer
2025-04-16 14:48:35 +02:00
parent 06e27c84de
commit 15fe06fbf5
2 changed files with 35 additions and 1 deletions

View File

@@ -40,6 +40,14 @@
albrecht = 3;
};
};
# attrs of submodule
userModules = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule {
options.foo = lib.mkOption { };
}
);
};
# list of str
kernelModules = lib.mkOption {
type = lib.types.listOf lib.types.str;