summary refs log tree commit diff
path: root/lib/tests/modules/assertions/submodule-attrsOf.nix
blob: aac5937cf7e59d81597855ac10eac34f2936a4cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ lib, ... }: {

  options.foo = lib.mkOption {
    default = { bar = {}; };
    type = lib.types.attrsOf (lib.types.submodule {
      _module.checks.test = {
        check = false;
        message = "Assertion failed";
      };
    });
  };

}