nixos/redmine: Add option for pandoc support allowing document preview

The pandoc support allows previewing LibreOffice and Microsoft Office
documents using a Markdown rendered text. Add an enable switch for it,
so it can be easily used.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Felix Singer
2026-07-12 01:34:42 +02:00
parent eb6c88783d
commit d674d9f0c1
+3
View File
@@ -265,6 +265,8 @@ in
description = "MiniMagick font path";
example = "/run/current-system/sw/share/X11/fonts/LiberationSans-Regular.ttf";
};
pandoc = lib.mkEnableOption "pandoc integration for previewing LibreOffice and Microsoft Office documents";
};
};
};
@@ -310,6 +312,7 @@ in
imagemagick_convert_command = lib.optionalString cfg.components.imagemagick "${pkgs.imagemagick}/bin/convert";
gs_command = lib.optionalString cfg.components.ghostscript "${pkgs.ghostscript}/bin/gs";
minimagick_font_path = "${cfg.components.minimagick_font_path}";
pandoc_command = lib.optionalString cfg.components.pandoc "${pkgs.pandoc}/bin/pandoc";
};
};