Infini-DL360/forgejo: enable actions runner

This commit is contained in:
Infinidoge 2024-07-14 00:51:33 -04:00
parent ec29c76a9e
commit 0b7a085f3c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, common, ... }:
let
cfg = config.services.forgejo;
domain = config.common.subdomain "git";
@ -58,6 +58,34 @@ in
};
};
services.gitea-actions-runner.package = pkgs.forgejo-runner;
services.gitea-actions-runner.instances = {
local_priviledged = {
enable = true;
name = "Local Priviledged";
url = "https://${domain}";
token = common.forgejo.actions.global_token;
labels = [
"local:host"
];
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
nodejs
wget
];
};
local = {
enable = false;
token = common.forgejo.actions.global_token;
labels = [ ];
};
};
services.nginx.virtualHosts.${domain} = config.common.nginx.ssl // {
locations."/" = {
proxyPass = "http://${cfg.settings.server.DOMAIN}:${toString cfg.settings.server.HTTP_PORT}";