16 lines
256 B
Nix
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" ];
|
|
};
|
|
}
|