nextcloud: use mkDefault for whole nginx config

This commit is contained in:
DavHau 2020-08-05 11:50:26 +07:00
parent ca916e8cb3
commit 128dbb31cc

View File

@ -531,8 +531,9 @@ in {
environment.systemPackages = [ occ ];
services.nginx.enable = mkDefault true;
services.nginx.virtualHosts.${cfg.hostName} = {
services.nginx = mkDefault {
enable = true;
virtualHosts.${cfg.hostName} = {
root = cfg.package;
locations = {
"= /robots.txt" = {
@ -631,6 +632,7 @@ in {
''}
'';
};
};
}
]);