Only restart nginx when enabled

This commit is contained in:
Sandro - 2023-01-07 01:45:28 +01:00
parent 983f5687ae
commit 992c4b67d6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ lib.mkMerge [
extraArgs = [ "--link" ]
++ lib.optional (config ? microvm) "--jobs=${toString config.microvm.vcpu}";
newPackage = pkgs.postgresql_15;
stopServices = [ "nginx" ]
stopServices = lib.optional config.services.nginx.enable "nginx"
++ lib.optional config.c3d2.hq.statistics.enable "collectd";
};
};