upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 20:57:36 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 20:57:36 +0000
commit73648864e126bb62e5c0bfdea1a22b4b3f6cb9a6 (patch)
treed63acc049c36f3a1621518cc9bfb05d129eee323
parent646dcf857f839ee42caa57a4e228d94d8efd79e4 (diff)
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.
-rw-r--r--nix/module.nix3
1 files changed, 3 insertions, 0 deletions
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
239 # Working directory where .relay-owner.nsec will be created if needed 239 # Working directory where .relay-owner.nsec will be created if needed
240 WorkingDirectory = cfg.dataDir; 240 WorkingDirectory = cfg.dataDir;
241 241
242 # Add git to PATH for purgatory sync operations
243 Environment = "PATH=${pkgs.git}/bin:${pkgs.openssh}/bin";
244
242 # Command to run 245 # Command to run
243 ExecStart = if cfg.relayOwnerNsecFile != null then 246 ExecStart = if cfg.relayOwnerNsecFile != null then
244 # Use nsec from file - need to use shell to read the file 247 # Use nsec from file - need to use shell to read the file