1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

forgejo: configure actions runner

This commit is contained in:
TheGeneralist 2026-01-24 15:13:19 +01:00
parent a2767fa829
commit 54f5856164
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -1,3 +1,5 @@
{ config, pkgs, ... }:
let
forgejo_root_dir = "/var/lib/forgejo";
domain = "git.thegeneralist01.com";
@ -102,7 +104,11 @@ in
name = "thegeneralist-central";
url = "https://${domain}";
tokenFile = config.age.secrets.forgejoRunnerToken.path;
labels = [ "central:host" ];
labels = [
"native:host"
# "node-22:docker://node:22-bookworm"
# "nixos-latest:docker://nixos/nix"
];
# Host-executed jobs need nix + ssh in PATH.
hostPackages = with pkgs; [
@ -120,5 +126,7 @@ in
};
};
networking.firewall.trustedInterfaces = [ "br-+" ];
networking.firewall.allowedTCPPorts = [ 2222 ];
}