host/istal: add forgejo runner

This commit is contained in:
Dmitriy Pleshevskiy 2024-08-07 15:11:28 +03:00
parent 22a689f190
commit 752d6a3a60
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 22 additions and 0 deletions

Binary file not shown.

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./forgejo-runners
./wireguard ./wireguard
./docker-registry-proxy.nix ./docker-registry-proxy.nix
./nginx.nix ./nginx.nix

View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
age.secrets.forgejo-runner-docker-token.file = ./forgejo-runner-docker-token.age;
local.system.kernel = "stable";
virtualisation.docker.enable = true;
services.gitea-actions-runner = {
package = pkgs.unstable.forgejo-runner;
instances = {
istal-docker = {
enable = true;
name = "istal-docker";
url = "https://git.pleshevski.ru";
labels = [ "ubuntu-22.04:docker://node:22-bullseye" ];
tokenFile = config.age.secrets.forgejo-runner-docker-token.path;
};
};
};
}