add forgejo runner

This commit is contained in:
Lzebulon 2025-08-06 20:12:52 +02:00
parent 5db6606ef8
commit b49363f299
Signed by: lzebulon
GPG key ID: D6CDAB8050CBBE7D
7 changed files with 139 additions and 5 deletions

View file

@ -3,6 +3,7 @@
imports = [
./fail2ban.nix
./forgejo.nix
./forgejo-runner.nix
];
services.caddy = {

View file

@ -0,0 +1,18 @@
{pkgs, config,...}:
{
age.secrets.forgejo-runner-token-1 = {
file = ../../../../secrets/services/forgejo/forgejo-runner-token-1.age;
};
services.gitea = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "runner-1";
url = "https://git.v2.${config.networking.domain}";
tokenFile = config.age.secrets.forgejo-runner-token-1.path;
};
};
}