1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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