homelab/hosts/physique/hyponix/services/forgejo-runner.nix
Lzebulon 5939aa8996
Some checks failed
/ check (push) Failing after 7s
format && add node monitoring
2025-11-03 23:25:59 +01:00

39 lines
815 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; [
bash
coreutils
curl
gawk
gitMinimal
gnused
wget
nodejs # Required to be able to build.
reuse
nix
];
};
};
}