diff options
Diffstat (limited to 'lib/tests/modules/attrsOf-lazy-check.nix')
-rw-r--r-- | lib/tests/modules/attrsOf-lazy-check.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tests/modules/attrsOf-lazy-check.nix b/lib/tests/modules/attrsOf-lazy-check.nix new file mode 100644 index 00000000000..ec5b418b15a --- /dev/null +++ b/lib/tests/modules/attrsOf-lazy-check.nix @@ -0,0 +1,7 @@ +{ lib, config, ... }: { + options.isLazy = lib.mkOption { + default = ! config.value ? foo; + }; + + config.value.bar = throw "is not lazy"; +} |