52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.gitea-actions-runner = {
|
|
package = pkgs.forgejo-runner;
|
|
instances.yuka = {
|
|
enable = true;
|
|
name = "yuka";
|
|
url = "https://git.sb20.xengi.de";
|
|
labels = [
|
|
"debian-stable:docker://docker.io/debian:stable-slim"
|
|
"alpine-latest:docker://docker.io/alpine:latest"
|
|
"buildkit:docker://docker.io/moby/buildkit:rootless"
|
|
];
|
|
tokenFile = config.age.secrets.forgejo-runner-token-env.path;
|
|
settings = {
|
|
runner.labels = {
|
|
debian-stable = {
|
|
backend = "docker";
|
|
backend-options = {
|
|
image = "docker.io/debian:stable-slim";
|
|
platform = "linux/amd64";
|
|
};
|
|
};
|
|
alpine-latest = {
|
|
backend = "docker";
|
|
backend-options = {
|
|
image = "docker.io/alpine:latest";
|
|
platform = "linux/amd64";
|
|
};
|
|
};
|
|
buildkit = {
|
|
backend = "docker";
|
|
backend-options = {
|
|
image = "docker.io/moby/buildkit:rootless";
|
|
platform = "linux/amd64";
|
|
};
|
|
};
|
|
};
|
|
server.connections.forgejo = {
|
|
url = "https://git.sb20.xengi.de/";
|
|
uuid = "f16ffc21-eb17-4595-ba54-eac00a6f1fa4";
|
|
token_url = "file://${config.age.secrets.forgejo-runner-token.path}";
|
|
};
|
|
container = {
|
|
enable_ipv6 = true;
|
|
docker_host = "unix:///run/podman/podman.sock";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|