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

38 lines
915 B
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 18:19:59 +02:00
dockerCompat = enable;
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 = [
"debian-latest:docker://node:18-bullseye"
"native:host"
];
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
}