Only try to stop collectd when activated

This commit is contained in:
Sandro - 2023-01-07 00:32:32 +01:00
parent d9f79c9aaf
commit c5373bc576
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 1 deletions

View File

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