lib/options: add mdDoc support to mkEnableOption
This commit is contained in:
parent
adf66cc313
commit
9bb82c35b7
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,10 @@ rec {
|
|||
name: mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether to enable ${name}.";
|
||||
description =
|
||||
if name ? _type && name._type == "mdDoc"
|
||||
then lib.mdDoc "Whether to enable ${name.text}."
|
||||
else "Whether to enable ${name}.";
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue