loptland: add forgejorunner

This commit is contained in:
Christoph Hollizeck 2024-12-28 07:41:28 +01:00
parent b91d90c2fe
commit 8c3dbb4fe9
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 26 additions and 3 deletions

View file

@ -32,6 +32,9 @@ in
"forgejo/mail/passwordHash" = {
inherit sopsFile;
};
"forgejo/runner/token" = {
inherit sopsFile;
};
};
};
@ -118,6 +121,24 @@ in
certificateScheme = "acme-nginx";
};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "monolith";
url = "https://git.${domainName}.com";
tokenFile = config.sops.secrets."forgejo/runner/token".path;
labels = [
"ubuntu-latest:docker://node:16-bullseye"
"ubuntu-22.04:docker://node:16-bullseye"
"ubuntu-20.04:docker://node:16-bullseye"
"ubuntu-18.04:docker://node:16-buster"
## optionally provide native execution on the host:
# "native:host"
];
};
};
networking.firewall.allowedTCPPorts = [
forgejoPort
80