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

@ -530,6 +530,23 @@
"type": "github"
}
},
"mediawikiSkinCitizen": {
"flake": false,
"locked": {
"lastModified": 1724097552,
"narHash": "sha256-+o5FDWMrEqnva5qcdc45wAYyE2ZtUhEjygUGVt0HsaA=",
"owner": "StarCitizenTools",
"repo": "mediawiki-skins-Citizen",
"rev": "28cd4e18b52aed3270fe7b55bff4545c8314a687",
"type": "github"
},
"original": {
"owner": "StarCitizenTools",
"ref": "v2.27.0",
"repo": "mediawiki-skins-Citizen",
"type": "github"
}
},
"nix": {
"inputs": {
"flake-compat": "flake-compat_2",
@ -848,6 +865,7 @@
"home-manager": "home-manager",
"homepage": "homepage",
"impermanence": "impermanence",
"mediawikiSkinCitizen": "mediawikiSkinCitizen",
"nixpkgs": "nixpkgs_5",
"unstable": "unstable",
"vpsadminos": "vpsadminos"

View file

@ -21,6 +21,11 @@
#FIXME: Podrá volver a "nixpkgs" una vez que rocksdb.enableLiburing llegue a stable
inputs.nixpkgs.follows = "unstable";
};
mediawikiSkinCitizen = {
url = "github:StarCitizenTools/mediawiki-skins-Citizen/v2.27.0";
flake = false;
};
};
outputs =
@ -33,6 +38,7 @@
, vpsadminos
, homepage
, conduwuit
, mediawikiSkinCitizen
}:
let
system = "x86_64-linux";

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';