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
|
let
|
||||||
forgejo_root_dir = "/var/lib/forgejo";
|
forgejo_root_dir = "/var/lib/forgejo";
|
||||||
domain = "git.thegeneralist01.com";
|
domain = "git.thegeneralist01.com";
|
||||||
|
|
@ -102,9 +104,13 @@ in
|
||||||
name = "thegeneralist-central";
|
name = "thegeneralist-central";
|
||||||
url = "https://${domain}";
|
url = "https://${domain}";
|
||||||
tokenFile = config.age.secrets.forgejoRunnerToken.path;
|
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.
|
# Host-executed jobs need nix + ssh in PATH.
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
bash
|
bash
|
||||||
coreutils
|
coreutils
|
||||||
|
|
@ -120,5 +126,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.trustedInterfaces = [ "br-+" ];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2222 ];
|
networking.firewall.allowedTCPPorts = [ 2222 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue