2015-02-08 13:48:38 -07:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
submod = { ... }: {
|
|
|
|
options = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
type = lib.types.bool;
|
|
|
|
description = ''
|
|
|
|
Some descriptive text
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2019-06-13 15:53:03 -06:00
|
|
|
attrsOfSub = lib.mkOption {
|
2015-02-08 13:48:38 -07:00
|
|
|
default = {};
|
|
|
|
example = {};
|
2019-06-13 15:53:03 -06:00
|
|
|
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
|
2015-02-08 13:48:38 -07:00
|
|
|
description = ''
|
|
|
|
Some descriptive text
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|