about summary refs log tree commit diff
path: root/lib/tests/modules
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/modules')
-rw-r--r--lib/tests/modules/deferred-module.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tests/modules/deferred-module.nix b/lib/tests/modules/deferred-module.nix
index faf459a991fa..dc8072d4e6c3 100644
--- a/lib/tests/modules/deferred-module.nix
+++ b/lib/tests/modules/deferred-module.nix
@@ -1,7 +1,7 @@
 { lib, ... }:
 let
   inherit (lib) types mkOption setDefaultModuleLocation;
-  inherit (types) deferredModule lazyAttrsOf submodule str raw;
+  inherit (types) deferredModule lazyAttrsOf submodule str raw enum;
 in
 {
   imports = [
@@ -28,6 +28,7 @@ in
       _file = "default-1.nix";
       default = { config, ... }: {
         options.settingsDict = lib.mkOption { type = lazyAttrsOf str; default = {}; };
+        options.bottom = lib.mkOption { type = enum []; };
       };
     }
 
@@ -44,6 +45,11 @@ in
     }
 
     {
+      _file = "the-file-that-contains-the-bad-config.nix";
+      default.bottom = "bogus";
+    }
+
+    {
       _file = "nodes-foo-c-is-a.nix";
       nodes.foo = { config, ... }: {
         settingsDict.c = config.settingsDict.a;