Add node to beefcake since it is needed to run forgejo actions on the host

This commit is contained in:
Daniel Flanagan 2024-07-24 13:35:14 -05:00
parent 14cd9f8006
commit 69688a053e
2 changed files with 13 additions and 12 deletions

View file

@ -6,19 +6,20 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Load cached nix store # cache not needed since we now run on the host directly
id: cache-nix-store # - name: Load cached nix store
uses: actions/cache/restore@v4 # id: cache-nix-store
with: # uses: actions/cache/restore@v4
path: /nix/store # with:
key: ${{ runner.os }}-nix-store # path: /nix/store
# key: ${{ runner.os }}-nix-store
- name: Check nix flake - name: Check nix flake
run: | run: |
nix flake check nix flake check
- name: Save nix store # - name: Save nix store
uses: actions/cache/save@v4 # uses: actions/cache/save@v4
with: # with:
path: /nix/store # path: /nix/store
key: ${{ steps.cache-nix-store.outputs.cache-primary-key }} # key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}

View file

@ -766,7 +766,6 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
]; ];
tokenFile = config.sops.secrets."forgejo-runner.env".path; tokenFile = config.sops.secrets."forgejo-runner.env".path;
hostPackages = with pkgs; [ hostPackages = with pkgs; [
sh
bash bash
coreutils coreutils
curl curl
@ -777,6 +776,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
]; ];
}; };
}; };
environment.systemPackages = with pkgs; [nodejs];
services.caddy.virtualHosts."git.lyte.dev" = { services.caddy.virtualHosts."git.lyte.dev" = {
extraConfig = '' extraConfig = ''
reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT} reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}