diff options
author | pennae <github@quasiparticle.net> | 2022-08-28 21:44:38 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-08-30 15:05:05 +0200 |
commit | 9bb82c35b750b5ffdebb906b696b135ef028b4f6 (patch) | |
tree | 689701f01a3db4ed8b0f030ad5cbf5f36d00cc34 /lib/options.nix | |
parent | adf66cc31390f920854340679d7505ac577a5a8b (diff) |
lib/options: add mdDoc support to mkEnableOption
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index 84d9fd5e15ded..b6376796dbaca 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -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; }; |