7a3a2d13564a1e99c72adf75e9de90f8ae47ec0d
Nixpkgs's services.gitea-actions-runner.module uses EnvironmentFile= instance.tokenFile; systemd reads KEY=VALUE lines, not YAML. The previous key="registration_token" with format="yaml" produced /var/lib/gitea-runner/ registration-token as YAML, which systemd silently failed to parse — the runner process received an empty $TOKEN and Gitea replied with "runner registration token not found". Switch to format="dotenv" and drop the key= parameter (dotenv has no key concept, the file is one TOKEN=... line). The companion secret file is renamed accordingly: secrets/gitea-runner-registration.yaml → secrets/gitea-runner-registration.env Verified at 2026-10-14 17:36 MSK on sapphira with token in place — register + declare succeed, runner shows up green in Gitea admin UI.
I'm a super newbie who just posted my stuff here. Now maybe about intermediate
Languages
Nix
82.8%
Python
9%
Shell
7.3%
Dockerfile
0.5%
Perl
0.4%