From a615ab61e88f9e809afbd1f769c31e5d98ea48ab Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Wed, 29 Apr 2026 16:18:41 +0200 Subject: [PATCH] fix: add uv to hermes-agent service PATH 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. --- hosts/m3-hermes/configuration.nix | 1 + hosts/m3-hermes/services/hermes-agent.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/hosts/m3-hermes/configuration.nix b/hosts/m3-hermes/configuration.nix index 1526b5b..34dcebe 100644 --- a/hosts/m3-hermes/configuration.nix +++ b/hosts/m3-hermes/configuration.nix @@ -21,6 +21,7 @@ git tea ghostty.terminfo + uv ]; services.openssh = { diff --git a/hosts/m3-hermes/services/hermes-agent.nix b/hosts/m3-hermes/services/hermes-agent.nix index 9c28aa4..eb59414 100644 --- a/hosts/m3-hermes/services/hermes-agent.nix +++ b/hosts/m3-hermes/services/hermes-agent.nix @@ -70,6 +70,10 @@ in { ''; }; + # Ensure 'uv' is in the hermes-agent service PATH so CronJobs and terminal + # sessions can use 'uv run' for PEP 723 scripts (e.g. garmin-daily.py). + systemd.services.hermes-agent.path = [pkgs.uv]; + services.hermes-agent = { enable = true; addToSystemPackages = true;