fix: add uv to hermes-agent service PATH #7

Merged
m3tam3re merged 1 commits from fix/hermes-agent-uv-path into master 2026-04-29 16:24:17 +02:00
Collaborator

Summary

Adds pkgs.uv to the hermes-agent systemd service PATH so that:

  • CronJobs can run PEP 723 scripts via uv run (e.g. garmin-daily.py)
  • Terminal sessions have access to uv for Python dependency resolution

Changes

  • hosts/m3-hermes/services/hermes-agent.nix: Added systemd.services.hermes-agent.path = [pkgs.uv];
  • hosts/m3-hermes/configuration.nix: Added uv to environment.systemPackages

Why

CronJobs that run Garmin health data scripts fail because uv run is not available in the hermes-agent service environment. The uv binary exists in the Nix store but is not in the service's PATH.

Test Plan

  • nixos-rebuild switch --flake .#m3-hermes succeeds
  • Verify uv is in service PATH: systemctl show hermes-agent -p Environment
  • Run Garmin CronJob and confirm it executes successfully
## Summary Adds `pkgs.uv` to the hermes-agent systemd service PATH so that: - **CronJobs** can run PEP 723 scripts via `uv run` (e.g. `garmin-daily.py`) - **Terminal sessions** have access to `uv` for Python dependency resolution ## Changes - `hosts/m3-hermes/services/hermes-agent.nix`: Added `systemd.services.hermes-agent.path = [pkgs.uv];` - `hosts/m3-hermes/configuration.nix`: Added `uv` to `environment.systemPackages` ## Why CronJobs that run Garmin health data scripts fail because `uv run` is not available in the hermes-agent service environment. The `uv` binary exists in the Nix store but is not in the service's PATH. ## Test Plan - [ ] `nixos-rebuild switch --flake .#m3-hermes` succeeds - [ ] Verify `uv` is in service PATH: `systemctl show hermes-agent -p Environment` - [ ] Run Garmin CronJob and confirm it executes successfully
m3ta-chiron added 1 commit 2026-04-29 16:19:15 +02:00
Add pkgs.uv to systemd.services.hermes-agent.path so that CronJobs
and terminal sessions can execute PEP 723 scripts via 'uv run'
(e.g. garmin-daily.py for Garmin Connect health data).

Also adds uv to environment.systemPackages for general availability.
m3tam3re merged commit 9c3d10836f into master 2026-04-29 16:24:17 +02:00
m3tam3re deleted branch fix/hermes-agent-uv-path 2026-04-29 16:24:17 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m3tam3re/nixos-config#7