nixos/dokuwiki: refactor
This commit is contained in:
parent
dc7ed06615
commit
71baf4801c
@ -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);
|
||||
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user