1{ lib, ... }:
2
3let
4 submod = { ... }: {
5 options = {
6 enable = lib.mkOption {
7 default = false;
8 example = true;
9 type = lib.types.bool;
10 description = ''
11 Some descriptive text
12 '';
13 };
14 };
15 };
16in
17
18{
19 options = {
20 attrsOfSub = lib.mkOption {
21 default = {};
22 example = {};
23 type = lib.types.attrsOf (lib.types.submodule [ submod ]);
24 description = ''
25 Some descriptive text
26 '';
27 };
28 };
29}