nix-cache01: make some changes to runner
Some checks failed
Run nix flake check / flake-check (push) Failing after 12s

This commit is contained in:
2025-08-27 22:42:42 +02:00
parent b86de01de8
commit bd162f3743

View File

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