From d9086da03f9385b6297fccf64310a427fb2a5cc3 Mon Sep 17 00:00:00 2001
From: albert <albert@sysctl.io>
Date: Sun, 2 Feb 2025 21:57:07 -0800
Subject: [PATCH] Testing

---
 nixos/common/services/forgejo-runner.nix | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/nixos/common/services/forgejo-runner.nix b/nixos/common/services/forgejo-runner.nix
index b86f116f..2610c23d 100644
--- a/nixos/common/services/forgejo-runner.nix
+++ b/nixos/common/services/forgejo-runner.nix
@@ -23,7 +23,20 @@
       ];
       url = "https://git.sysctl.io";
       tokenFile = /run/secrets/services/forgejo_token;
-      hostPackages = with pkgs; [ nix deploy-rs nodejs coreutils git gnutar gzip ];
+      hostPackages = with pkgs; [
+        nodejs_20 # Explicitly use Node.js 20.x
+        deploy-rs
+        coreutils
+        git
+        gnutar
+        gzip
+      ];
+
+      # Add Node.js to PATH
+      environment = {
+        PATH = "${pkgs.nodejs_20}/bin";
+        NODE_PATH = "${pkgs.nodejs_20}/lib/node_modules";
+      };
     };
   };