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.
This commit is contained in:
DDoSolitary 2023-08-09 18:38:02 +08:00
parent 060a47e1e4
commit d410464c5d
No known key found for this signature in database
GPG key ID: FC7D8A0E70542CCF

View file

@ -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