mkRedundantOption: use lib.literalMd to hopefully format correctly

This commit is contained in:
greyweather committed 2026-09-01 22:49:56 +01:00
1 parent f1567e6123
commit 9846cf8d3b
1 file changed
+7 -1
+7 -1
View File
@@ -55,7 +55,13 @@
mkRedundantOption = name: value: attrs: lib.mkOption {
inherit (attrs) type default;
description = "${attrs.description}\n\n!!! warning\n ${mkRedundantOptionDescription name value}";
description = lib.literalMD ''
${attrs.description}
!!! warning
${mkRedundantOptionDescription name value}";
'';
};
};
}