nixos-config/modules/services/dmz/gitea_runner.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2023-10-16 10:33:47 +02:00
{ lib, config, pkgs, ... }:
{
virtualisation = {
podman ={
enable = true;
autoPrune.enable = true;
2024-04-06 19:33:10 +02:00
dockerCompat = true;
2023-10-16 10:33:47 +02:00
};
};
services.gitea-actions-runner.instances = {
homerunner = {
2023-10-16 10:33:47 +02:00
enable = true;
url = "https://git.kabtop.de";
name = "Homerunner";
tokenFile = config.age.secrets."services/gitea/homerunner-token".path;
2023-10-16 10:33:47 +02:00
labels = [
2024-04-07 09:29:48 +02:00
"home"
2023-10-16 10:33:47 +02:00
"debian-latest:docker://node:18-bullseye"
"native:host"
2024-04-07 09:29:48 +02:00
"alpine-latest:docker://alpine:latest"
"nix-master:docker://nix:master"
];
hostPackages = with pkgs; [
bash
curl
gitMinimal
coreutils
wget
gnused
2023-10-16 10:33:47 +02:00
];
};
};
age.secrets."services/gitea/homerunner-token" = {
file = ../../../secrets/services/gitea/homerunner-token.age;
2024-01-18 17:42:23 +01:00
owner = "gitea-runner";
};
2023-10-16 10:33:47 +02:00
}