nixos/git: Update Gitea Actions runner

Bump runner labels to node 24 / Trixie and Ubuntu 26.04. The upstream
module now generates the runner config from the `settings` option and
wires `ExecStart` itself, so drop the hand-written config file and
`ExecStart` override.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 20:37:27 +01:00
parent 98ccc23ef5
commit b044504938
+10 -15
View File
@@ -1,19 +1,7 @@
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
let let
inherit (builtins) toJSON;
inherit (lib) mkForce; inherit (lib) mkForce;
inherit (lib.my.c) pubDomain; inherit (lib.my.c) pubDomain;
cfgFile = pkgs.writeText "gitea-actions-runner.yaml" (toJSON {
container = {
network = "podman";
privileged = true;
};
cache = {
enabled = true;
dir = "/var/cache/gitea-runner";
};
});
in in
{ {
config = { config = {
@@ -30,8 +18,8 @@ in
enable = true; enable = true;
name = "main-docker"; name = "main-docker";
labels = [ labels = [
"debian-node-bullseye:docker://node:18-bullseye" "debian-node-trixie:docker://node:24-trixie"
"ubuntu-22.04:docker://git.nul.ie/dev/actions-ubuntu:22.04" "ubuntu-26.04:docker://git.nul.ie/dev/actions-ubuntu:26.04"
]; ];
url = "https://git.${pubDomain}"; url = "https://git.${pubDomain}";
tokenFile = config.age.secrets."gitea/actions-runner.env".path; tokenFile = config.age.secrets."gitea/actions-runner.env".path;
@@ -39,6 +27,14 @@ in
runner = { runner = {
timeout = "8h"; timeout = "8h";
}; };
container = {
network = "podman";
privileged = true;
};
cache = {
enabled = true;
dir = "/var/cache/gitea-runner";
};
}; };
}; };
}; };
@@ -66,7 +62,6 @@ in
DynamicUser = mkForce false; DynamicUser = mkForce false;
User = "gitea-runner"; User = "gitea-runner";
Group = "gitea-runner"; Group = "gitea-runner";
ExecStart = mkForce "${config.services.gitea-actions-runner.package}/bin/act_runner -c ${cfgFile} daemon";
}; };
}; };
}; };