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:
parent
a2767fa829
commit
54f5856164
1 changed files with 10 additions and 2 deletions
|
|
@ -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 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue