core/lib/tests/modules/attrsOf-lazy-check.nix
2024-06-30 09:16:52 +01:00

7 lines
137 B
Nix

{ lib, config, ... }:
{
options.isLazy = lib.mkOption { default = !config.value ? foo; };
config.value.bar = throw "is not lazy";
}