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"; + }; }; };