From d674d9f0c1c4e2325f17eab20a7909d27740e702 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 12 Jul 2026 01:34:42 +0200 Subject: [PATCH] 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 --- nixos/modules/services/misc/redmine.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/misc/redmine.nix b/nixos/modules/services/misc/redmine.nix index 8788da104e72..8939ec31cd5a 100644 --- a/nixos/modules/services/misc/redmine.nix +++ b/nixos/modules/services/misc/redmine.nix @@ -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"; }; };