Files
nixpkgs/lib/tests/modules/assertions/non-cascading.nix
2020-11-30 23:51:41 +01:00

18 lines
264 B
Nix

{ lib, config, ... }: {
options.foo = lib.mkOption {
default = true;
};
options.bar = lib.mkOption {
default = config.foo;
};
config._module.checks.foo = {
enable = true;
message = "Foo assertion";
triggerPath = [ "foo" ];
};
}