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

18 lines
278 B
Nix

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