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