summary refs log tree commit diff
path: root/lib/tests/modules/freeform-nested.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-03-22 20:55:54 +0100
committerSilvan Mosberger <contact@infinisil.com>2020-08-03 22:37:01 +0200
commit446d80d28deb9929aca2a70699b3f32c2f1297d5 (patch)
treef4e752eb936d4a00718f3e79873eae0a4d443caf /lib/tests/modules/freeform-nested.nix
parent2d45a62899d47c109a0b8ce4ca9d33265b8a1a37 (diff)
downloadnixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar.gz
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar.bz2
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar.lz
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar.xz
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.tar.zst
nixpkgs-446d80d28deb9929aca2a70699b3f32c2f1297d5.zip
lib/tests: Add tests for freeform modules
Diffstat (limited to 'lib/tests/modules/freeform-nested.nix')
-rw-r--r--lib/tests/modules/freeform-nested.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tests/modules/freeform-nested.nix b/lib/tests/modules/freeform-nested.nix
new file mode 100644
index 00000000000..5da27f5a8b4
--- /dev/null
+++ b/lib/tests/modules/freeform-nested.nix
@@ -0,0 +1,7 @@
+{ lib, ... }: {
+  options.nest.foo = lib.mkOption {
+    type = lib.types.bool;
+    default = false;
+  };
+  config.nest.bar = "bar";
+}