summary refs log tree commit diff
path: root/lib/tests/modules/attrsOf-conditional-check.nix
blob: 0f00ebca15598b23baa277bea1ebc7caf18e539a (plain) (blame)
1
2
3
4
5
6
7
{ lib, config, ... }: {
  options.conditionalWorks = lib.mkOption {
    default = ! config.value ? foo;
  };

  config.value.foo = lib.mkIf false "should not be defined";
}