about summary refs log tree commit diff
path: root/lib/tests/modules
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-02-04 18:09:51 +0100
committerRobert Hensing <robert@roberthensing.nl>2024-04-04 11:54:46 +0200
commit1465777b63d38988d5ecd81683d2975321e59d1a (patch)
tree715bb4968c6cce5fb4d113fc87614b82c08dde57 /lib/tests/modules
parentbcd774606a257fd6f14bda50effac67474005447 (diff)
lib.types.attrTag: Custom error when passing bare type
Diffstat (limited to 'lib/tests/modules')
-rw-r--r--lib/tests/modules/types-attrTag-wrong-decl.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tests/modules/types-attrTag-wrong-decl.nix b/lib/tests/modules/types-attrTag-wrong-decl.nix
new file mode 100644
index 0000000000000..d03370bc10da4
--- /dev/null
+++ b/lib/tests/modules/types-attrTag-wrong-decl.nix
@@ -0,0 +1,14 @@
+{ lib, ... }:
+let
+  inherit (lib) types mkOption;
+in
+{
+  options = {
+    opt = mkOption {
+      type = types.attrTag {
+        int = types.int;
+      };
+      default = { int = 1; };
+    };
+  };
+}