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,11 +11,7 @@
}; };
services.gitea-actions-runner.instances = { services.gitea-actions-runner.instances = {
actions1 = actions1 = {
let
actions_dir = "/var/lib/private/gitea-runner/actions1";
in
{
enable = true; enable = true;
tokenFile = config.sops.secrets.actions-token-1.path; tokenFile = config.sops.secrets.actions-token-1.path;
name = "actions1.home.2rjus.net"; name = "actions1.home.2rjus.net";
@@ -36,34 +32,20 @@
cache = { cache = {
enabled = true; enabled = true;
dir = "/var/cache/gitea-actions1";
}; };
container = { container = {
privileged = false; privileged = false;
workdir_parent = "${actions_dir}/container_workspace";
};
host = {
workdir_parent = "${actions_dir}/host_workspace";
}; };
}; };
labels = builtins.map (n: "${n}:docker://gitea/runner-images:${n}") [
labels = [ "ubuntu-latest"
"homelab" "ubuntu-latest-slim"
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:runner-latest" "ubuntu-latest-full"
"alpine-latest:docker://alpine:latest"
"nix-latest:docker://nixos/nix:latest"
"nixos:host"
]; ];
url = "https://git.t-juice.club"; url = "https://git.t-juice.club";
}; };
}; };
systemd.services.gitea-runner-actions1.environment =
let
actions_dir = "/var/lib/private/gitea-runner/actions1";
in
{
XDG_CONFIG_HOME = actions_dir;
XDG_CACHE_COME = "${actions_dir}/.cache";
};
} }