2024-05-01 22:14:04 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
submod =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
type = lib.types.bool;
|
|
|
|
description = ''
|
|
|
|
Some descriptive text
|
|
|
|
'';
|
2024-06-30 08:12:46 +00:00
|
|
|
};
|
2024-05-01 22:14:04 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
attrsOfSub = lib.mkOption {
|
|
|
|
default = { };
|
|
|
|
example = { };
|
|
|
|
type = lib.types.attrsOf (lib.types.submodule [ submod ]);
|
|
|
|
description = ''
|
|
|
|
Some descriptive text
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|