Files
nixos-servers/services/actions-runner/default.nix
Torjus Håkestad d2373b5e37 actions-runner: fix cache dir for DynamicUser
Move cache directory under the managed state directory since the
service runs with DynamicUser and cannot create /var/cache paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:27:00 +01:00

33 lines
770 B
Nix

{ config, pkgs, ... }:
{
virtualisation.podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.actions1 = {
enable = true;
name = config.networking.hostName;
url = "https://code.t-juice.club";
tokenFile = "/var/lib/forgejo-runner/token";
labels = [
"nix:docker://nixos/nix:latest"
"node-bookworm:docker://node:lts-bookworm-slim"
"alpine:docker://alpine:latest"
];
settings = {
runner.capacity = 2;
cache = {
enabled = true;
dir = "/var/lib/gitea-runner/actions1/cache";
};
container.privileged = false;
};
};
};
}