nix-cache01: redo actions config
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
This commit is contained in:
@@ -11,11 +11,7 @@
|
||||
};
|
||||
|
||||
services.gitea-actions-runner.instances = {
|
||||
actions1 =
|
||||
let
|
||||
actions_dir = "/var/lib/private/gitea-runner/actions1";
|
||||
in
|
||||
{
|
||||
actions1 = {
|
||||
enable = true;
|
||||
tokenFile = config.sops.secrets.actions-token-1.path;
|
||||
name = "actions1.home.2rjus.net";
|
||||
@@ -36,34 +32,20 @@
|
||||
|
||||
cache = {
|
||||
enabled = true;
|
||||
dir = "/var/cache/gitea-actions1";
|
||||
};
|
||||
|
||||
container = {
|
||||
privileged = false;
|
||||
workdir_parent = "${actions_dir}/container_workspace";
|
||||
};
|
||||
host = {
|
||||
workdir_parent = "${actions_dir}/host_workspace";
|
||||
};
|
||||
};
|
||||
|
||||
labels = [
|
||||
"homelab"
|
||||
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:runner-latest"
|
||||
"alpine-latest:docker://alpine:latest"
|
||||
"nix-latest:docker://nixos/nix:latest"
|
||||
"nixos:host"
|
||||
labels = builtins.map (n: "${n}:docker://gitea/runner-images:${n}") [
|
||||
"ubuntu-latest"
|
||||
"ubuntu-latest-slim"
|
||||
"ubuntu-latest-full"
|
||||
];
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user