ajout php-xml pour le template

This commit is contained in:
Maurice Debray 2022-03-17 00:05:23 +01:00
parent 7dd00fe792
commit 0d171f8026

View file

@ -1,8 +1,11 @@
{ pkgs, ... }:
let
hostname = "hackens.ens.fr";
in
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
# TODO: move to hackens.org
services.dokuwiki.sites."hackens.ens.fr" = {
services.dokuwiki.sites."${hostname}" = {
enable = true;
extraConfig = ''
@ -66,10 +69,17 @@
# And then pass this theme to the template list like this:
in [
template-bootstrap3 {
logo = https://hackens.org/_media/wiki/logo.png;
favicon = https://hackens.org/_media/wiki/favicon.ico;
apple-touch-icon = https://hackens.org/_media/wiki/logo.png;
logo = ./media/logo.png;
favicon = ./media/favicon.ico;
apple-touch-icon = ./media/logo.png;
}
];
};
# On veut php-xml
services.phpfpm.pools."dokuwiki-${hostname}".phpPackage = pkgs.php74.withExtensions(
{ all, ... }:
[
all.xml
];
);
}