From 4e3c5fb7137f34623598667c8a80bae2d8d66169 Mon Sep 17 00:00:00 2001 From: Artur Faizullin Date: Thu, 11 Jul 2024 08:27:29 +0200 Subject: [PATCH] nixos/opentelemetry-collector: Avoid using a fixed hardcoded path Follow the boyscout rule. --- nixos/modules/services/monitoring/opentelemetry-collector.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/opentelemetry-collector.nix b/nixos/modules/services/monitoring/opentelemetry-collector.nix index 695fe3ef27ec..d9b8c27ccdfe 100644 --- a/nixos/modules/services/monitoring/opentelemetry-collector.nix +++ b/nixos/modules/services/monitoring/opentelemetry-collector.nix @@ -63,7 +63,7 @@ in ProtectSystem = "full"; DevicePolicy = "closed"; NoNewPrivileges = true; - WorkingDirectory = "/var/lib/opentelemetry-collector"; + WorkingDirectory = "%S/opentelemetry-collector"; StateDirectory = "opentelemetry-collector"; SupplementaryGroups = [ # allow to read the systemd journal for opentelemetry-collector