From 548188be4d608b486cdb81b4c45db37b8e5d22a6 Mon Sep 17 00:00:00 2001 From: hexchen Date: Wed, 13 Jan 2021 17:18:16 +0000 Subject: [PATCH] hainich/lantifa: attempt visualeditor fix --- hosts/hainich/services/lantifa.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/hainich/services/lantifa.nix b/hosts/hainich/services/lantifa.nix index 4d3eef4..068d522 100644 --- a/hosts/hainich/services/lantifa.nix +++ b/hosts/hainich/services/lantifa.nix @@ -10,6 +10,7 @@ in { localAddress6 = "fd00::42:15"; config = {config, pkgs, ... }: { + networking.hosts."fd00::42:14" = [ "wiki.lantifa.org" ]; networking.firewall.allowedTCPPorts = [ 4422 ]; users.users.mediawiki.extraGroups = [ "keys" ]; @@ -22,6 +23,8 @@ in { extraConfig = ''require_once('/var/lib/mediawiki/plugins/WikiDB/WikiDB.php'); $wgExtraNamespaces = array( 100 => "Table", 101 => "Table_Talk",); $wgWikiDBNamespaces = 100; + $wgGroupPermissions['user']['writeapi'] = true; + $wgDefaultUserOptions['visualeditor-enable'] = 1; ''; extensions = { @@ -29,6 +32,7 @@ in { url = "https://extdist.wmflabs.org/dist/extensions/TemplateData-REL1_31-0bf2ec0.tar.gz"; sha256 = ''1kygi069jqlrkpwxwf2m5467k02wmbj38vzp796rl827ajrzxfip''; }; + VisualEditor = null; }; virtualHost = {