about summary refs log tree commit diff
path: root/lib/tests/modules
diff options
context:
space:
mode:
authorDanila Danko <br4ch1st0chr0n3@gmail.com>2024-01-30 21:32:34 +0300
committerDanila Danko <br4ch1st0chr0n3@gmail.com>2024-01-30 21:32:34 +0300
commit7dea495d34f6ae7a82d676bfbb4ec8d90587784c (patch)
tree483b1ccd5bef1faa3544512a1531b70d4cda3739 /lib/tests/modules
parentad853c13680ac6c28ebe9a13a5b2973eb7573221 (diff)
feat: add test for nonEmptyListOf submodule
Diffstat (limited to 'lib/tests/modules')
-rw-r--r--lib/tests/modules/error-nonEmptyListOf-submodule.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tests/modules/error-nonEmptyListOf-submodule.nix b/lib/tests/modules/error-nonEmptyListOf-submodule.nix
new file mode 100644
index 0000000000000..1189e8891560b
--- /dev/null
+++ b/lib/tests/modules/error-nonEmptyListOf-submodule.nix
@@ -0,0 +1,7 @@
+{ lib, ... }:
+{
+  options.bad = lib.mkOption {
+    type = lib.types.nonEmptyListOf (lib.types.submodule { });
+    default = [ ];
+  };
+}