From c5373bc5762f8fdd982c37269a93a87e5917e9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 7 Jan 2023 00:32:32 +0100 Subject: [PATCH] Only try to stop collectd when activated --- config/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/default.nix b/config/default.nix index b99a133e..8d40ca02 100644 --- a/config/default.nix +++ b/config/default.nix @@ -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"; }; };