From d410464c5d0cb02936b08878c2d7620cdd310e4e Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Wed, 9 Aug 2023 18:38:02 +0800 Subject: [PATCH] nixos/netdata: fix position of NETDATA_PIPENAME It was accidentally placed in a condition-guarded block, making the setting only take effect when enableAnalyticsReporting = false. --- nixos/modules/services/monitoring/netdata.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/netdata.nix b/nixos/modules/services/monitoring/netdata.nix index 239a285b20d5..3833418b5add 100644 --- a/nixos/modules/services/monitoring/netdata.nix +++ b/nixos/modules/services/monitoring/netdata.nix @@ -214,9 +214,9 @@ in { ++ lib.optional config.virtualisation.libvirtd.enable (config.virtualisation.libvirtd.package); environment = { PYTHONPATH = "${cfg.package}/libexec/netdata/python.d/python_modules"; + NETDATA_PIPENAME = "/run/netdata/ipc"; } // lib.optionalAttrs (!cfg.enableAnalyticsReporting) { DO_NOT_TRACK = "1"; - NETDATA_PIPENAME = "/run/netdata/ipc"; }; restartTriggers = [ config.environment.etc."netdata/netdata.conf".source