nix-cache01: redo actions config
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

This commit is contained in:
2025-08-27 22:57:26 +02:00
parent 2fc4623e8d
commit e5d799ef68

View File

@@ -11,59 +11,41 @@
}; };
services.gitea-actions-runner.instances = { services.gitea-actions-runner.instances = {
actions1 = actions1 = {
let enable = true;
actions_dir = "/var/lib/private/gitea-runner/actions1"; tokenFile = config.sops.secrets.actions-token-1.path;
in name = "actions1.home.2rjus.net";
{ settings = {
enable = true; log = {
tokenFile = config.sops.secrets.actions-token-1.path; level = "debug";
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;
workdir_parent = "${actions_dir}/container_workspace";
};
host = {
workdir_parent = "${actions_dir}/host_workspace";
};
}; };
labels = [ runner = {
"homelab" file = ".runner";
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:runner-latest" capacity = 4;
"alpine-latest:docker://alpine:latest" timeout = "2h";
"nix-latest:docker://nixos/nix:latest" shutdown_timeout = "10m";
"nixos:host" insecure = false;
]; fetch_timeout = "10s";
fetch_interval = "30s";
};
url = "https://git.t-juice.club"; cache = {
enabled = true;
dir = "/var/cache/gitea-actions1";
};
container = {
privileged = false;
};
}; };
}; labels = builtins.map (n: "${n}:docker://gitea/runner-images:${n}") [
systemd.services.gitea-runner-actions1.environment = "ubuntu-latest"
let "ubuntu-latest-slim"
actions_dir = "/var/lib/private/gitea-runner/actions1"; "ubuntu-latest-full"
in ];
{
XDG_CONFIG_HOME = actions_dir; url = "https://git.t-juice.club";
XDG_CACHE_COME = "${actions_dir}/.cache";
}; };
};
} }