homelab/hosts/physique/hyponix/services/forgejo-runner.nix
Lzebulon 761c42d982
All checks were successful
/ check (push) Successful in 17s
fix ci/cd ?
2025-08-06 22:24:02 +02:00

32 lines
703 B
Nix

{pkgs, config,...}:
{
age.secrets.forgejo-runner-token-1 = {
file = ../../../../secrets/services/forgejo/forgejo-runner-token-1.age;
owner = "gitea-runner";
};
virtualisation.docker.enable = true;
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "runner-1";
url = "https://git.${config.networking.domain}";
tokenFile = config.age.secrets.forgejo-runner-token-1.path;
labels = [
"nixos-latest:docker://nixos/nix:latest"
"native:host"
];
hostPackages = with pkgs; [
# besoin pour checkout
nodejs
nix
];
};
};
}