summary refs log tree commit diff
path: root/lib/tests/modules/types-anything/lists.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-09-04 15:27:26 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-09-15 21:06:05 +0200
commit6a7d250007baedeb4de34e8ce490d49160cb63a8 (patch)
tree482da5dd8e8bee9e53ee66a72a9aea1048bfdd8b /lib/tests/modules/types-anything/lists.nix
parent67551f46fbc20b3b96ff27503b659a8f3fedb421 (diff)
downloadnixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar.gz
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar.bz2
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar.lz
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar.xz
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.tar.zst
nixpkgs-6a7d250007baedeb4de34e8ce490d49160cb63a8.zip
lib/tests: Add tests for types.anything
Diffstat (limited to 'lib/tests/modules/types-anything/lists.nix')
-rw-r--r--lib/tests/modules/types-anything/lists.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/tests/modules/types-anything/lists.nix b/lib/tests/modules/types-anything/lists.nix
new file mode 100644
index 00000000000..bd846afd3d1
--- /dev/null
+++ b/lib/tests/modules/types-anything/lists.nix
@@ -0,0 +1,16 @@
+{ lib, ... }: {
+
+  options.value = lib.mkOption {
+    type = lib.types.anything;
+  };
+
+  config = lib.mkMerge [
+    {
+      value = [ null ];
+    }
+    {
+      value = [ null ];
+    }
+  ];
+
+}