runner: document tokenFile EnvironmentFile format

The gitea-actions-runner module loads tokenFile as a systemd
EnvironmentFile, so it needs KEY=value lines, not a raw token. Comment
updated to match — the runner failed to start the first time around
because the file just contained the bare registration token.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-01 16:04:32 +01:00
parent 27a4e85693
commit dad207d19b

View file

@ -7,9 +7,10 @@
# #
# The runner registration token is one-time-use: it must exist at the path # The runner registration token is one-time-use: it must exist at the path
# below on first activation, after which the runner stores its own auth in # below on first activation, after which the runner stores its own auth in
# /var/lib/gitea-runner. To register: # /var/lib/gitea-runner. The module loads this file as a systemd
# EnvironmentFile, so it must use KEY=value format (not the raw token):
# #
# echo 'YOUR_REGISTRATION_TOKEN' | sudo tee /var/secrets/forgejo-runner-token # echo 'TOKEN=YOUR_REGISTRATION_TOKEN' | sudo tee /var/secrets/forgejo-runner-token
# sudo chmod 600 /var/secrets/forgejo-runner-token # sudo chmod 600 /var/secrets/forgejo-runner-token
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {