enable some extentions

This commit is contained in:
Winzlieb - 2021-09-05 06:49:41 +02:00
parent 4a102b5f3c
commit 7e40654e7d
2 changed files with 25 additions and 7 deletions

View File

@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1592784995, "lastModified": 1630761588,
"narHash": "sha256-mj7GnZrzqwiaPf1WQ9HqOJ7eT+NHB1tDNN0mFTlgXzg=", "narHash": "sha256-7GXckvZy7DGh2KIyfdArqwnyeSc5Owy1fumEDQyd8eY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "13c15f26d44cf7f54197891a6f0c78ce8149b037", "rev": "a51aa6523bd8ee985bc70987909eff235900197a",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-20.03", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@ -1,5 +1,5 @@
{ {
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: { outputs = { self, nixpkgs }: {
@ -20,10 +20,28 @@
services.mediawiki = { services.mediawiki = {
enable = true; enable = true;
virtualHost = { virtualHost = {
hostName = "flake-test"; hostName = "mediawiki";
adminAddr = "root@example.com"; adminAddr = "root@example.com";
}; };
passwordFile = pkgs.writeText "password" "topSecret"; extensions = {
Interwiki = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/Interwiki-REL1_36-08fe37f.tar.gz";
sha256 = "sha256-77uvw/ETPeRNYRcIl2KqowmJ9D9R9wyyltpy5Cu11L4=";
};
Cite = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/Interwiki-REL1_36-08fe37f.tar.g://extdist.wmflabs.org/dist/extensions/Cite-REL1_36-77e6710.tar.gz";
sha256 = "sha256-77uvw/ETPeRNYRcIl2KqowmJ9D9R9wyyltpy5Cu11L4=";
};
DynamicPageList = pkgs.fetchzip {
url = "https://extdist.wmflabs.org/dist/extensions/DynamicPageList-REL1_36-c00fbd6.tar.gz";
sha256 = "sha256-77uvw/ETPeRNYRcIl2KqowmJ9D9R9wyyltpy5Cu11L4=";
};
Scribunto = pkgs.fetchzip {
url = "ihttps://extdist.wmflabs.org/dist/extensions/Scribunto-REL1_36-cc217d4.tar.gz";
sha256 = "sha256-77uvw/ETPeRNYRcIl2KqowmJ9D9R9wyyltpy5Cu11L4=";
};
};
passwordFile = pkgs.writeText "password" "topSecretF0rAll!!!!";
}; };
}) })