nixpkgs/lib/tests/modules/assertions/trigger-lazy.nix
2020-11-30 23:51:23 +01:00

16 lines
256 B
Nix

{ lib, ... }: {
options.foo = lib.mkOption {
default = true;
};
options.bar = lib.mkOption {
default = true;
};
config._module.assertions.test = {
enable = true;
message = "Assertion failed";
triggerPath = [ "foo" ];
};
}