mirror of https://gitlab.crans.org/nounous/nixos
Add svg support
parent
eb81239e4f
commit
0fcfe6da91
|
|
@ -1,4 +1,9 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
version = pkgs.mediawiki.version;
|
||||
|
|
@ -68,9 +73,10 @@ in
|
|||
# Files and Uploads
|
||||
$wgMaxUploadSize = 512 * 1024 * 1024;
|
||||
$wgUseImageMagick = true;
|
||||
$wgImageMagickConvertCommand = '${ pkgs.imagemagick }/bin/convert';
|
||||
$wgImageMagickConvertCommand = '${pkgs.imagemagick}/bin/convert';
|
||||
$wgStrictFileExtensions = false;
|
||||
$wgFileExtensions[] = 'pdf';
|
||||
$wgFileExtensions[] = 'svg';
|
||||
|
||||
# Limite mémoire, quand on fait de gros importi (9M de xml), le parser
|
||||
# prends plus que 50M
|
||||
|
|
@ -149,10 +155,10 @@ in
|
|||
$wgCategoryGroupLockdown["!user"]["read"] = [ "Page Publique" ]; # Restrict read for non-user (i.e. anonymous) on execpt for Page Publique # Extensions
|
||||
$wgWikiEditorRealtimePreview = true;
|
||||
$wgCiteBookReferencing = true;
|
||||
$wgPdfProcessor = '${ pkgs.ghostscript }/bin/gs';
|
||||
$wgPdfProcessor = '${pkgs.ghostscript}/bin/gs';
|
||||
$wgPdfPostProcessor = $wgImageMagickConvertCommand;
|
||||
$wgPdfInfo = '${ pkgs.poppler-utils }/bin/pdfinfo';
|
||||
$wgPdftoText = '${ pkgs.poppler-utils }/bin/pdftotext';
|
||||
$wgPdfInfo = '${pkgs.poppler-utils}/bin/pdfinfo';
|
||||
$wgPdftoText = '${pkgs.poppler-utils}/bin/pdftotext';
|
||||
$wgScribuntoDefaultEngine = 'luasandbox';
|
||||
|
||||
# Custom Namespaces
|
||||
|
|
|
|||
Loading…
Reference in New Issue