From c2392d759c44a33310e8f2eabfd8321a835f4992 Mon Sep 17 00:00:00 2001 From: notohh Date: Thu, 5 Oct 2023 14:45:45 -0400 Subject: [PATCH] forgejo: init actions runner --- hosts/sakura/services/forgejo.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hosts/sakura/services/forgejo.nix b/hosts/sakura/services/forgejo.nix index 5ad579c..8378b39 100644 --- a/hosts/sakura/services/forgejo.nix +++ b/hosts/sakura/services/forgejo.nix @@ -1,4 +1,8 @@ -{lib, ...}: { +{ + lib, + config, + ... +}: { services.forgejo = { enable = true; stateDir = "/var/lib/forgejo"; @@ -10,7 +14,7 @@ }; actions = { ENABLED = true; - DEFAULT_ACTIONS_URL = "https://gitea.com"; + DEFAULT_ACTIONS_URL = "https://code.forgejo.org"; }; server = { HTTP_PORT = 3200; @@ -32,4 +36,15 @@ }; }; }; + services.gitea-actions-runner.instances.main = { + enable = true; + name = config.networking.hostName; + url = "https://git.flake.sh"; + token = "WJXKbVSyfUVpeJYiFpRlf04CyxDS0mYG7at8B9kX"; + labels = [ + "debian-latest:docker://node:18-bullseye" + "ubuntu-latest:docker://node:18-bullseye" + #"native:host" + ]; + }; }