Rebuild: Forgejo runner needs git/nix in PATH #31

Closed
opened 2026-04-29 05:51:34 +00:00 by sscoble · 0 comments
Owner

Problem: Runner cannot checkout repos — git not in PATH

Fix applied:
Updated /etc/nixos/modules/forgejo-runner.nix:

  • Added git and nix to runner PATH
  • Created wrapped forgejo-runner binary with proper PATH
  • Changed PrivateTmp = false so checkout works
  • Added ReadWritePaths for /tmp and /var/tmp

Action required:

sudo nixos-rebuild switch
sudo systemctl restart forgejo-runner

Verification:
Next workflow run should be able to actions/checkout successfully.

**Problem:** Runner cannot checkout repos — git not in PATH **Fix applied:** Updated `/etc/nixos/modules/forgejo-runner.nix`: - Added `git` and `nix` to runner PATH - Created wrapped `forgejo-runner` binary with proper PATH - Changed `PrivateTmp = false` so checkout works - Added `ReadWritePaths` for `/tmp` and `/var/tmp` **Action required:** ```bash sudo nixos-rebuild switch sudo systemctl restart forgejo-runner ``` **Verification:** Next workflow run should be able to `actions/checkout` successfully.
sscoble added this to the 📋 MVP milestone 2026-04-29 05:51:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sscoble/brand-site#31
No description provided.