nixos/gitea-actions-runner: set the $HOME environment variable

This fixes an issue where running the official `actions/checkout` action
from GitHub on a runner with label `:host`, would fail with incredibly
unhelpful error messages.

Turns out, this is due to `$HOME` not being set.
This commit is contained in:
emilylange 2024-04-10 17:52:49 +02:00
parent 45e438f5eb
commit 2cd2419baf
No known key found for this signature in database
GPG key ID: 0AD773CE46FD0F87

View file

@ -203,6 +203,8 @@ in
TOKEN = "${instance.token}";
} // optionalAttrs (wantsPodman) {
DOCKER_HOST = "unix:///run/podman/podman.sock";
} // {
HOME = "/var/lib/gitea-runner/${name}";
};
path = with pkgs; [
coreutils