From 5bc22bfb5511fd554390e9eaae85baa12d7f1a25 Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 6 Oct 2023 23:52:11 -0400 Subject: [PATCH] forgejo: use forgejo-actions-runner --- hosts/sakura/services/forgejo.nix | 38 ++++++++++++++++--------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/hosts/sakura/services/forgejo.nix b/hosts/sakura/services/forgejo.nix index e9eca03..5510821 100644 --- a/hosts/sakura/services/forgejo.nix +++ b/hosts/sakura/services/forgejo.nix @@ -38,23 +38,25 @@ }; }; }; - services.gitea-actions-runner.instances.main = { - enable = true; - name = config.networking.hostName; - url = "https://git.flake.sh"; - token = config.sops.secrets.forgejo-runner-token.path; - labels = [ - "debian-latest:docker://node:18-bullseye" - "ubuntu-latest:docker://node:18-bullseye" - #"native:host" - ]; - hostPackages = with pkgs; [ - bash - curl - coreutils - wget - gitMinimal - wget - ]; + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances.sakura = { + enable = true; + name = config.networking.hostName; + url = "https://git.flake.sh"; + token = config.sops.secrets.forgejo-runner-token.path; + labels = [ + "debian-latest:docker://node:18-bullseye" + "ubuntu-latest:docker://node:18-bullseye" + #"native:host" + ]; + hostPackages = with pkgs; [ + bash + curl + coreutils + wget + gitMinimal + ]; + }; }; }