github-runner (hope)
This container runs the GitHub Actions runner of the chaotic-cx organization with the label nyxbuilder. The
runner is the myoung34/github-runner Docker image, started by the compose-runner-github-runner unit. Every job
gets a fresh runner (EPHEMERAL: true).
The container is untrusted and does not get the regular Garuda configuration. To get a shell, run
nixos-container root-login github-runner on hope.
Restarting the runner
sudo systemctl restart compose-runner-github-runner
Nix expression
{
garuda-lib,
inputs,
keys,
...
}:
{
imports = [
inputs.nix-topology.nixosModules.default
inputs.sops-nix.nixosModules.sops
../../modules/garuda-lib.nix
../../modules/hardening.nix
../../modules/motd.nix
../../modules/topology.nix
../../services/compose-runner/compose-runner.nix
../../services/mk.nix
../../services/monitoring
];
inherit
(garuda-lib.mkUntrustedRunner {
host = "hope";
user = "pedrohlc";
home = "/home/pedrohlc";
key = keys.pedrohlc;
units = [
"compose-runner-github-runner.service"
"docker.service"
];
runners = {
github-runner = {
envfile = "/var/.github-runner.env";
source = ../../../compose/github-runner;
};
};
})
garuda
nix
security
services
systemd
users
virtualisation
;
system.stateVersion = "26.11";
}
Docker containers
services:
github-runner:
image: myoung34/github-runner:latest
container_name: github-runner
privileged: true
environment:
ACCESS_TOKEN: ${ACCESS_TOKEN:-?err}
EPHEMERAL: true
LABELS: nyxbuilder
ORG_NAME: chaotic-cx
RUNNER_NAME: immortalis
RUNNER_SCOPE: org
RUNNER_WORKDIR: /var/cache/github-runner/work
volumes: ['/var/cache/github-runner/work:/var/cache/github-runner/work']
restart: 'no'