2015-02-08 21:48:38 +01: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 23:53:03 +02:00
|
|
|
attrsOfSub = lib.mkOption {
|
2015-02-08 21:48:38 +01:00
|
|
|
default = {};
|
|
|
|
example = {};
|
2019-06-13 23:53:03 +02:00
|
|
|
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
|
2015-02-08 21:48:38 +01:00
|
|
|
description = ''
|
|
|
|
Some descriptive text
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|