Files
nixos-servers/services/actions-runner/default.nix
Torjus Håkestad b86de01de8
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
nix-cache01: change runner log-level to debug
2025-08-27 22:29:28 +02:00

55 lines
1.1 KiB
Nix

{ pkgs, config, ... }:
{
sops.secrets."actions-token-1" = {
sopsFile = ../../secrets/nix-cache01/actions_token_1;
format = "binary";
};
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
services.gitea-actions-runner.instances = {
actions1 = {
enable = true;
tokenFile = config.sops.secrets.actions-token-1.path;
name = "actions1.home.2rjus.net";
settings = {
log = {
level = "debug";
};
runner = {
file = ".runner";
capacity = 4;
timeout = "2h";
shutdown_timeout = "10m";
insecure = false;
fetch_timeout = "10s";
fetch_interval = "30s";
};
cache = {
enabled = true;
};
container = {
privileged = false;
};
};
labels = [
"homelab"
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:runner-latest"
"alpine-latest:docker://alpine:latest"
"nix-latest:docker://nixos/nix:latest"
"nixos:host"
];
url = "https://git.t-juice.club";
};
};
}