From 4964ac6817d9a595fcd7f207f3045601f0a12e54 Mon Sep 17 00:00:00 2001 From: octycs Date: Fri, 15 Jan 2021 10:33:57 +0100 Subject: [PATCH] Add DynamicPageList + PageForms extension Signed-off-by: hexchen --- hosts/hainich/services/lantifa.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/hainich/services/lantifa.nix b/hosts/hainich/services/lantifa.nix index e496354..25883da 100644 --- a/hosts/hainich/services/lantifa.nix +++ b/hosts/hainich/services/lantifa.nix @@ -32,12 +32,27 @@ in { $wgGroupPermissions['user']['writeapi'] = true; $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgLogo = "/images/a/ac/LantifaLogoFem0.1.png"; + + // PageForms config + $wgGroupPermissions['*']['viewedittab'] = false; + $wgGroupPermissions['user']['viewedittab'] = true; + + // intersection / DynamicPageList config + $wgDLPMaxCacheTime = 5 * 60; ''; extensions = { TemplateData = null; VisualEditor = null; InputBox = null; + intersection = pkgs.fetchzip { # This is the DynamicPageList extension + url = "https://extdist.wmflabs.org/dist/extensions/intersection-REL1_35-f657385.tar.gz"; + sha256 = "0f4bpxdfj5k4ll56s3i6cpgcpfalsff307shdhqhrbl0n3kbr3q0"; + }; + PageForms = pkgs.fetchzip { + url = "https://github.com/wikimedia/mediawiki-extensions-PageForms/archive/5.0.1.zip"; + sha256 = "172m7p941fbkl29h5bhanx3dn42jfmzgyvgmgm2lgdbmkawwly96"; + }; }; virtualHost = {