nixos: rotate the runner registration token
All checks were successful
nixos / nixos (push) Successful in 1m14s

The token sat in the old repository history. Forgejo generated a new
one, which retires the old; the runner re-registers with it on this
deploy (the job running the deploy shows as cancelled; the next run
confirms). The old runner entry stays behind offline.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 10:40:56 +04:00
commit 0a54caa7d4
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -56,7 +56,8 @@ in
};
config = {
sops.secrets."runner/token" = { };
# A new token re-registers the runner (the module compares its hash)
sops.secrets."runner/token".restartUnits = [ "gitea-runner-asxpio.service" ];
sops.secrets."runner/interop_token" = { };
sops.templates."runner.env".content = ''
TOKEN=${config.sops.placeholder."runner/token"}