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

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

}