1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/lib/tests/modules/assertions/submodule-attrsOf.nix

14 lines
249 B
Nix
Raw Normal View History

{ lib, ... }: {
options.foo = lib.mkOption {
default = { bar = {}; };
type = lib.types.attrsOf (lib.types.submodule {
_module.assertions.test = {
enable = true;
message = "Assertion failed";
};
});
};
}