1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 23:50:07 +03:00
nixpkgs/lib/tests/modules/attrsOf-conditional-check.nix

9 lines
172 B
Nix
Raw Normal View History

{ lib, config, ... }:
{
options.conditionalWorks = lib.mkOption {
default = !config.value ? foo;
};
config.value.foo = lib.mkIf false "should not be defined";
}