From 22e748c6894d34a6956e8995b9b4c3af9133f13a Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 15 Jul 2025 01:47:41 -0400 Subject: [PATCH] forgejo runner --- nixos/machines/driftwood/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nixos/machines/driftwood/configuration.nix b/nixos/machines/driftwood/configuration.nix index 7d69e9e..626222f 100644 --- a/nixos/machines/driftwood/configuration.nix +++ b/nixos/machines/driftwood/configuration.nix @@ -73,6 +73,23 @@ guiAddress = "100.64.0.3:8384"; }; + # Forgejo runner + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instaces.default = { + enable = true; + name = "driftwood"; + url = "https://git.stranger.systems"; + tokenFile = "/var/secrets/foregejo-runner"; + labels = [ + # provide a debian base with nodejs for actions + "debian-latest:docker://node:18-bullseye" + # fake the ubuntu name, because node provides no ubuntu builds + "ubuntu-latest:docker://node:18-bullseye" + ]; + }; + }; + # Allow reboot on autoupgrades system.autoUpgrade = { allowReboot = true;