nixos/dokuwiki: refactor

This commit is contained in:
dadada 2020-03-30 13:00:35 +02:00
parent dc7ed06615
commit 71baf4801c
No known key found for this signature in database
GPG Key ID: EEB8D1CE62C4DFEA

View File

@ -53,8 +53,7 @@ let
'';
};
siteOpts = {lib, name, ...}:
{
siteOpts = {lib, name, ...}: {
options = {
enable = mkEnableOption "DokuWiki web application.";
@ -244,7 +243,6 @@ in
services.nginx = {
enable = true;
virtualHosts = mapAttrs (hostName: cfg: mkMerge [ cfg.nginx {
root = mkForce "${pkg hostName cfg}/share/dokuwiki/";
extraConfig = "fastcgi_param HTTPS on;";
@ -303,6 +301,5 @@ in
"d ${stateDir cfg}/pages 0750 ${user} ${group} - -"
"d ${stateDir cfg}/tmp 0750 ${user} ${group} - -"
]) eachSite);
};
}