services: nginx: don't enable everywhere

This commit is contained in:
Antoine Martin 2021-06-01 14:28:42 +02:00
parent 3d7bd805ed
commit 2dc8502fb8

View file

@ -5,7 +5,7 @@
{
# Whenever something defines an nginx vhost, ensure that nginx defaults are
# properly set.
config = lib.mkIf ((builtins.attrNames config.services.nginx.virtualHosts) != [ ]) {
config = lib.mkIf ((builtins.attrNames config.services.nginx.virtualHosts) != [ "localhost" ]) {
services.nginx = {
enable = true;
statusPage = true; # For monitoring scraping.