forgejo runner (docker)

This commit is contained in:
freek 2026-10-09 10:46:00 +02:00
parent 0aee3fb1fd
commit f2327911d9
2 changed files with 24 additions and 0 deletions

23
runner.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, ... }: {
services.forgejo.settings.actions.ENABLED = true;
virtualisation.docker = {
enable = true;
package = pkgs.docker_29;
autoPrune.enable = true; # removes unused images and containers weekly
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.main = {
enable = true;
name = "web-runner";
url = "https://forgejo.cordevelop.com";
tokenFile = "/var/lib/forgejo-runner-token";
labels = [
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
"docker:docker://ghcr.io/catthehacker/ubuntu:act-latest"
];
};
};
}