From 1cfb30fbdb49128a32aaae819b8ca9ea9fa28c99 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 24 Mar 2024 16:59:06 +0100 Subject: [PATCH] nixos/netdata: depends on suid-sgid-wrappers Netdata is critically dependent on working wrappers, thus, we ensure that the service was successful. Signed-off-by: Raito Bezarius --- nixos/modules/services/monitoring/netdata.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/netdata.nix b/nixos/modules/services/monitoring/netdata.nix index f604a6835b08..969fb81ab8ff 100644 --- a/nixos/modules/services/monitoring/netdata.nix +++ b/nixos/modules/services/monitoring/netdata.nix @@ -226,7 +226,9 @@ in { systemd.services.netdata = { description = "Real time performance monitoring"; - after = [ "network.target" ]; + after = [ "network.target" "suid-sgid-wrappers.service" ]; + # No wrapper means no "useful" netdata. + requires = [ "suid-sgid-wrappers.service" ]; wantedBy = [ "multi-user.target" ]; path = (with pkgs; [ curl