From 9846cf8d3b2326e89e744a212b9ed0f518dc57f6 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Tue, 1 Sep 2026 22:49:56 +0100 Subject: [PATCH] mkRedundantOption: use `lib.literalMd` to hopefully format correctly --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f8b47b3..c50b095 100644 --- a/flake.nix +++ b/flake.nix @@ -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}"; + ''; }; }; }