add citizen theme to mediawiki

This commit is contained in:
Fabian Montero 2024-08-23 16:38:52 -06:00
parent 7a2e3fd0a8
commit 22e27f87b0
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
3 changed files with 40 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, pkgs, flakes, ... }:
with lib;
{
services = {
@ -20,11 +20,26 @@ with lib;
database.type = "postgres";
passwordFile = "/run/keys/mediawiki-password";
skins = {
citizen = "${flakes.mediawikiSkinCitizen}";
};
extraConfig = ''
# Disable anonymous editing and account creation
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgDefaultSkin = 'citizen';
$wgDefaultMobileSkin = 'citizen';
$wgCitizenThemeDefault = 'dark';
$wgCitizenShowPageTools = 'login';
$wgLogos = [
'icon' => "https://posixlycorrect.com/favicon.png",
'1x' => "https://posixlycorrect.com/favicon.png",
'2x' => "https://posixlycorrect.com/favicon.png",
];
$wgEnableEmail = false; #TODO: arreglar esto
$wgNoReplyAddress = 'mediawiki@posixlycorrect.com';
$wgEmergencyContact = 'mediawiki@posixlycorrect.com';