Files
nix/modules/services/gitea-runner.nix
T
2026-10-25 10:08:15 -05:00

18 lines
759 B
Nix

{
den.aspects.services.gitea-runner.nixos = { config, host, pkgs, ... }: let
home = config.users.users.${host.owner}.home;
in {
systemd.services."gitea-runner-${config.networking.hostName}".serviceConfig.LoadCredential = [ "github:${home}/.ssh/id_rsa" ];
services.gitea-actions-runner.instances.${config.networking.hostName} = {
enable = true;
name = config.networking.hostName;
url = "http://127.0.0.1:${toString config.services.gitea.settings.server.HTTP_PORT}";
tokenFile = "${config.users.users.${host.owner}.home}/.config/gitea-runner/token";
labels = [ "native:host" ];
hostPackages = with pkgs; [ bash coreutils gnused gnugrep findutils git openssh curl jq nix nodejs attic-client ];
};
};
}