diff --git a/nix-system-configs/modules/system/gramethus.nix b/nix-system-configs/modules/system/gramethus.nix index 05cbead..d282ded 100644 --- a/nix-system-configs/modules/system/gramethus.nix +++ b/nix-system-configs/modules/system/gramethus.nix @@ -210,19 +210,13 @@ in { # Add a simple systemd service to run the Grafana Agent (Alloy) systemd.services.grafana-agent = { - description = "Grafana Alloy - journal -> loki"; + description = "Grafana Alloy"; wantedBy = ["multi-user.target"]; serviceConfig = { - # Ensure persistent dir for positions exists - ExecStartPre = '' - mkdir -p /var/lib/grafana-agent - chown root:root /var/lib/grafana-agent - ''; - # The grafana-agent binary provided by nixpkgs ExecStart = '' - ${pkgs.grafana-alloy}/bin/grafana-alloy --config.file /etc/alloy/config.alloy + ${pkgs.grafana-alloy}/bin/alloy --config.file /etc/alloy/config.alloy ''; Restart = "on-failure";