From 73648864e126bb62e5c0bfdea1a22b4b3f6cb9a6 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Sun, 11 Jan 2026 20:57:36 +0000 Subject: fix(nix): add git and openssh to systemd service PATH for purgatory sync ngit-grasp requires git and ssh binaries in PATH to clone repositories during purgatory sync operations. Without these in the systemd service environment, all git fetch operations fail with 'No target repo found'. This fix adds git and openssh to the service PATH via systemd's Environment directive, allowing purgatory to successfully clone repositories from remote URLs. --- nix/module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 8136ae1..d820b67 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -239,6 +239,9 @@ let # Working directory where .relay-owner.nsec will be created if needed WorkingDirectory = cfg.dataDir; + # Add git to PATH for purgatory sync operations + Environment = "PATH=${pkgs.git}/bin:${pkgs.openssh}/bin"; + # Command to run ExecStart = if cfg.relayOwnerNsecFile != null then # Use nsec from file - need to use shell to read the file -- cgit v1.2.3