lib/modules: convert option description to MD

This commit is contained in:
pennae 2022-08-30 14:15:36 +02:00
parent f2ea09ecbe
commit e04a09082e
2 changed files with 44 additions and 78 deletions

View file

@ -137,7 +137,7 @@ rec {
let default' = if !isList default then [ default ] else default;
in mkOption {
type = lib.types.package;
description = "The ${name} package to use.";
description = lib.mdDoc "The ${name} package to use.";
default = attrByPath default'
(throw "${concatStringsSep "." default'} cannot be found in pkgs") pkgs;
defaultText = literalExpression ("pkgs." + concatStringsSep "." default');