summaryrefslogtreecommitdiffstats
path: root/lib/tests/modules/declare-submoduleWith-noshorthand.nix
blob: ff7a43e4db973c82f0875d25e62121e43c71cb40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, ... }:
let
  sub.options.config = lib.mkOption {
    type = lib.types.bool;
    default = false;
  };
in
{
  options.submodule = lib.mkOption {
    type = lib.types.submoduleWith {
      modules = [ sub ];
    };
    default = { };
  };
}