services/lantifa: set mediawiki-version from 21.11

due to a wikiDB issue the mediawiki version in unstable (37) is not
compatible.
switching to 21.05 would mean a downgrade, so this is the hack until we
fully upgrade to 21.11
This commit is contained in:
schweby 2021-12-11 13:20:42 +01:00
parent af8b16117f
commit 2a1e692522

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, profiles, modules, evalConfig, ... }: { config, lib, pkgs, profiles, modules, evalConfig, ... }:
let let
unstable = import (import ../nix/sources.nix).nixpkgs-unstable {}; new = import (import ../nix/sources.nix).nixpkgs-new {};
in { in {
containers.lantifa = { containers.lantifa = {
autoStart = true; autoStart = true;
@ -37,13 +37,13 @@ in {
services.mediawiki = { services.mediawiki = {
enable = true; enable = true;
name = "LANtifa"; name = "LANtifa";
package = unstable.mediawiki; package = new.mediawiki;
database.createLocally = true; database.createLocally = true;
passwordFile = "/var/lib/mediawiki/mediawiki-password"; passwordFile = "/var/lib/mediawiki/mediawiki-password";
extraConfig = let extraConfig = let
wikidb = pkgs.fetchzip { wikidb = pkgs.fetchzip {
url = "http://www.kennel17.co.uk/uploads/testwiki/archive/e/e9/20210407232657%21WikiDB.zip"; url = "https://www.kennel17.co.uk/uploads/testwiki/e/e9/WikiDB.zip";
sha256 = "0d4f2ygglz4w515a7lgw59500q3xmr92xxhsmh8p204yaa769x8v"; sha256 = "0pns9fk1ws54m7rgbfsrxqh6ayab16mmnvzba8m4malljgrbil8b";
}; };
in '' in ''
// Configure short URLs // Configure short URLs