diff options
Diffstat (limited to 'lib/tests/modules/declare-oneOf.nix')
-rw-r--r-- | lib/tests/modules/declare-oneOf.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tests/modules/declare-oneOf.nix b/lib/tests/modules/declare-oneOf.nix new file mode 100644 index 0000000000000..df092a14f81e2 --- /dev/null +++ b/lib/tests/modules/declare-oneOf.nix @@ -0,0 +1,9 @@ +{ lib, ... }: { + options.value = lib.mkOption { + type = lib.types.oneOf [ + lib.types.int + (lib.types.listOf lib.types.int) + lib.types.str + ]; + }; +} |