mkRedundantOption: use multi-line string with html

This commit is contained in:
greyweather committed 2026-09-01 23:49:59 +01:00
1 parent e6b2edcc42
commit daa7052958
1 file changed
+13 -1
+13 -1
View File
@@ -55,7 +55,19 @@
mkRedundantOption = name: value: attrs: lib.mkOption {
inherit (attrs) type default;
description = "${attrs.description}\n\n\<div class=admonition-warning>\<p class=admonition-title>Redundant\</p>\<p>${mkRedundantOptionDescription name value}\</p>\</div>";
description = ''
${attrs.description}
<div class=admonition-warning>
<p class=admonition-title>
Redundant
</p>
<p>
${mkRedundantOptionDescription name value}
</p>
</div>
'';
};
};
}