summary refs log tree commit diff
path: root/lib/tests/modules/declare-submoduleWith-noshorthand.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/modules/declare-submoduleWith-noshorthand.nix')
-rw-r--r--lib/tests/modules/declare-submoduleWith-noshorthand.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/tests/modules/declare-submoduleWith-noshorthand.nix b/lib/tests/modules/declare-submoduleWith-noshorthand.nix
new file mode 100644
index 00000000000..af3b4ba470f
--- /dev/null
+++ b/lib/tests/modules/declare-submoduleWith-noshorthand.nix
@@ -0,0 +1,13 @@
+{ lib, ... }: let
+  sub.options.config = lib.mkOption {
+    type = lib.types.bool;
+    default = false;
+  };
+in {
+  options.submodule = lib.mkOption {
+    type = lib.types.submoduleWith {
+      modules = [ sub ];
+    };
+    default = {};
+  };
+}