summary refs log tree commit diff
path: root/lib/tests/modules/declare-submoduleWith-noshorthand.nix
blob: af3b4ba470ff60fb7cafcc6bd302486ad6d6dc0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ 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 = {};
  };
}