visual editor and stuff

This commit is contained in:
Jade 2023-05-04 16:23:54 +02:00
parent e4fa74a53f
commit cc33dfdbc6

View file

@ -22,6 +22,7 @@
}
];
config = { config, pkgs, ... }: {
environment.systemPackages = with pkgs; [ luajit ];
services.mediawiki = {
enable = true;
name = "phtanum-b";
@ -48,6 +49,12 @@
$wgLogo = 'images/d/de/Phtanum-b-wikilogo.png';
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '${pkgs.luajit}/bin/lua';
$wgScribuntoUseGeSHi = true;
$wgScribuntoUseCodeEditor = true;
$wgGroupPermissions['oidc_interface_admin'] = $wgGroupPermissions['interface_admin'];
$wgGroupPermissions['oidc_admin'] = $wgGroupPermissions['sysop'];
$wgGroupPermissions['oidc_admin']['userrights'] = true;
@ -77,18 +84,24 @@
url = "https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_38-8f8bab6.tar.gz";
sha256 = "sha256-g+PGNzt0o2FebI3xyVamz5RA95E86MD2yqD4v8N6zKU=";
};
ParserFunctions = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/ParserFunctions-REL1_38-9455755.tar.gz";
sha256 = "sha256-+S89JIFkkc1o9nQmq278+WRdO9ByekGKDrwrrxyqXCc=";
};
#ParserFunctions = pkgs.fetchzip {
#url = "https://extdist.wmflabs.org/dist/extensions/ParserFunctions-REL1_38-9455755.tar.gz";
#sha256 = "sha256-+S89JIFkkc1o9nQmq278+WRdO9ByekGKDrwrrxyqXCc=";
#};
TemplateStyles = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/TemplateStyles-REL1_38-a2d1ae3.tar.gz";
sha256 = "sha256-AFTfKP5McB/UikA9RRAmw1vLrb7zWjbBLtJhsEP9sTY=";
};
TemplateData = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/TemplateData-REL1_38-7763625.tar.gz";
sha256 = "sha256-204EBxEeuFZHtXoJPpa190vPSmPBcktxDVchIURW5Lo=";
};
#TemplateData = pkgs.fetchzip {
#url = "https://extdist.wmflabs.org/dist/extensions/TemplateData-REL1_38-7763625.tar.gz";
#sha256 = "sha256-204EBxEeuFZHtXoJPpa190vPSmPBcktxDVchIURW5Lo=";
#};
Scribunto = null;
ParserFunctions = null;
TemplateData = null;
VisualEditor = null;
WikiEditor = null;
CodeEditor = null;
};
};