mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/dokuwiki: refactor
This commit is contained in:
parent
dc7ed06615
commit
71baf4801c
1 changed files with 159 additions and 162 deletions
|
@ -53,8 +53,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
siteOpts = {lib, name, ...}:
|
siteOpts = {lib, name, ...}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
enable = mkEnableOption "DokuWiki web application.";
|
enable = mkEnableOption "DokuWiki web application.";
|
||||||
|
|
||||||
|
@ -244,7 +243,6 @@ in
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
virtualHosts = mapAttrs (hostName: cfg: mkMerge [ cfg.nginx {
|
virtualHosts = mapAttrs (hostName: cfg: mkMerge [ cfg.nginx {
|
||||||
root = mkForce "${pkg hostName cfg}/share/dokuwiki/";
|
root = mkForce "${pkg hostName cfg}/share/dokuwiki/";
|
||||||
extraConfig = "fastcgi_param HTTPS on;";
|
extraConfig = "fastcgi_param HTTPS on;";
|
||||||
|
@ -303,6 +301,5 @@ in
|
||||||
"d ${stateDir cfg}/pages 0750 ${user} ${group} - -"
|
"d ${stateDir cfg}/pages 0750 ${user} ${group} - -"
|
||||||
"d ${stateDir cfg}/tmp 0750 ${user} ${group} - -"
|
"d ${stateDir cfg}/tmp 0750 ${user} ${group} - -"
|
||||||
]) eachSite);
|
]) eachSite);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue