Update to NixOs 21.11 and add dokuwiki

This commit is contained in:
Paul-Henri Froidmont 2021-12-07 08:34:21 +01:00
parent d8bbec67db
commit a043edf25d
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
6 changed files with 52 additions and 9 deletions

19
modules/dokuwiki.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
configureWiki = name: {
services.dokuwiki.sites = {
"${name}.${config.networking.domain}" = {
enable = true;
stateDir = "/nix/var/data/dokuwiki/${name}/data";
};
};
services.phpfpm.pools."dokuwiki-${name}.${config.networking.domain}".phpPackage = lib.mkOverride 10 pkgs.php74;
services.nginx.virtualHosts."${name}.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
};
};
in
configureWiki "anderia" // configureWiki "arkadia"