nixos/opentelemetry-collector: Avoid using a fixed hardcoded path

Follow the boyscout rule.
This commit is contained in:
Artur Faizullin 2024-07-11 08:27:29 +02:00
parent 40013729d3
commit 4e3c5fb713

View File

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