Loading nixos/modules/services/web-apps/stirling-pdf.nix +12 −4 Original line number Diff line number Diff line Loading @@ -46,19 +46,27 @@ in systemd.services.stirling-pdf = { environment = lib.mapAttrs (_: toString) cfg.environment; # following https://github.com/Stirling-Tools/Stirling-PDF#locally # following https://docs.stirlingpdf.com/Installation/Unix%20Installation path = with pkgs; [ # `which` is used to test command availability # See https://github.com/Stirling-Tools/Stirling-PDF/blob/main/src/main/java/stirling/software/SPDF/config/ExternalAppDepConfig.java#L42 which unpaper libreoffice qpdf ocrmypdf poppler_utils unoconv opencv pngquant tesseract python3Packages.weasyprint (python3.withPackages ( p: with p; [ weasyprint opencv-python-headless ] )) ghostscript_headless ] ++ lib.optional (cfg.environment.INSTALL_BOOK_AND_ADVANCED_HTML_OPS or "false" == "true") calibre; Loading Loading @@ -102,7 +110,7 @@ in RestrictRealtime = true; SystemCallArchitectures = "native"; SystemCallFilter = [ "~@cpu-emulation @debug @keyring @mount @obsolete @privileged @resources @clock @setuid @chown" "~@cpu-emulation @debug @keyring @mount @obsolete @privileged @clock @setuid @chown" ]; UMask = "0077"; }; Loading Loading
nixos/modules/services/web-apps/stirling-pdf.nix +12 −4 Original line number Diff line number Diff line Loading @@ -46,19 +46,27 @@ in systemd.services.stirling-pdf = { environment = lib.mapAttrs (_: toString) cfg.environment; # following https://github.com/Stirling-Tools/Stirling-PDF#locally # following https://docs.stirlingpdf.com/Installation/Unix%20Installation path = with pkgs; [ # `which` is used to test command availability # See https://github.com/Stirling-Tools/Stirling-PDF/blob/main/src/main/java/stirling/software/SPDF/config/ExternalAppDepConfig.java#L42 which unpaper libreoffice qpdf ocrmypdf poppler_utils unoconv opencv pngquant tesseract python3Packages.weasyprint (python3.withPackages ( p: with p; [ weasyprint opencv-python-headless ] )) ghostscript_headless ] ++ lib.optional (cfg.environment.INSTALL_BOOK_AND_ADVANCED_HTML_OPS or "false" == "true") calibre; Loading Loading @@ -102,7 +110,7 @@ in RestrictRealtime = true; SystemCallArchitectures = "native"; SystemCallFilter = [ "~@cpu-emulation @debug @keyring @mount @obsolete @privileged @resources @clock @setuid @chown" "~@cpu-emulation @debug @keyring @mount @obsolete @privileged @clock @setuid @chown" ]; UMask = "0077"; }; Loading