mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +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 = {
|
||||
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…
Add table
Add a link
Reference in a new issue