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