mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
18 lines
346 B
Nix
18 lines
346 B
Nix
{ lib, ... }: {
|
|
|
|
options.foo = lib.mkOption {
|
|
default = { bar = {}; };
|
|
type = lib.types.attrsOf (lib.types.submodule {
|
|
options.baz = lib.mkOption {
|
|
default = true;
|
|
};
|
|
});
|
|
};
|
|
|
|
config._module.checks.test = {
|
|
enable = true;
|
|
message = "Assertion failed";
|
|
triggerPath = [ "foo" "bar" "baz" ];
|
|
};
|
|
|
|
}
|