mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-28 17:21:12 +02:00
bekkalokk/mediawiki: install PdfHandler extension
This commit is contained in:
@@ -107,6 +107,7 @@ in {
|
||||
CodeEditor
|
||||
CodeMirror
|
||||
DeleteBatch
|
||||
PdfHandler
|
||||
PluggableAuth
|
||||
Popups
|
||||
Scribunto
|
||||
@@ -216,6 +217,13 @@ in {
|
||||
# EXT:WikiEditor
|
||||
$wgWikiEditorRealtimePreview = true;
|
||||
|
||||
# EXT:PdfHandler
|
||||
$wgPdfProcessor = '${lib.getExe pkgs.ghostscript_headless}';
|
||||
$wgPdfPostProcessor = $wgImageMagickConvertCommand;
|
||||
$wgPdfInfo = '${lib.getExe' pkgs.poppler-utils "pdfinfo"}';
|
||||
$wgPdftoText = '${lib.getExe' pkgs.poppler-utils "pdftotext"}';
|
||||
|
||||
# Override key from hardcoded config in nixpkgs
|
||||
$wgSecretKey = file_get_contents("${config.sops.secrets."mediawiki/secret-key".path}");
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user