forgejo nixos runner for git.orcachill.in
Find a file
2026-09-24 23:57:43 -07:00
.gitignore init 2026-09-24 23:57:43 -07:00
configuration.nix init 2026-09-24 23:57:43 -07:00
flake.lock init 2026-09-24 23:57:43 -07:00
flake.nix init 2026-09-24 23:57:43 -07:00
hardware-configuration.nix init 2026-09-24 23:57:43 -07:00
README.md init 2026-09-24 23:57:43 -07:00

forgejo nix runner

nixos vm used as a native forgejo actions runner

the host and runner are both named sakari

netbird is enabled so jobs can deploy to private peers instead of using the public internet

the runner exposes the nixos:host label and keeps /nix/store between jobs, mostly so the netboot repo does not rebuild plasma from scratch every time

install

put the registration token on the vm without adding it to nix or git:

install -d -m 0700 /var/lib/secrets
printf 'TOKEN=your-token\n' > /var/lib/secrets/forgejo-runner.env
chmod 0600 /var/lib/secrets/forgejo-runner.env

then rebuild:

nixos-rebuild switch --flake .#forgejo-runner

this runner uses host execution and should only run trusted repositories