summaryrefslogtreecommitdiffstats
path: root/lib/tests/modules/import-error-submodule.nix
blob: d2237c58bb5abe8a6dcd2690808a7cbf8f9494ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, ... }:
let
  myconf = lib.evalModules { modules = [ { } ]; };
in
{
  options.foo = lib.mkOption {
    type = lib.types.submodule { };
    default = { };
  };
  config.foo =
    { ... }:
    {
      imports = [
        # error, like `import-configuration.nix`, but in a submodule this time
        myconf
      ];
    };
}