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
uses: actions/checkout@v3
- name: Load cached nix store
id: cache-nix-store
uses: actions/cache/restore@v4
with:
path: /nix/store
key: ${{ runner.os }}-nix-store
# cache not needed since we now run on the host directly
# - name: Load cached nix store
# id: cache-nix-store
# uses: actions/cache/restore@v4
# with:
# path: /nix/store
# key: ${{ runner.os }}-nix-store
- name: Check nix flake
run: |
nix flake check
- name: Save nix store
uses: actions/cache/save@v4
with:
path: /nix/store
key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}
# - name: Save nix store
# uses: actions/cache/save@v4
# with:
# path: /nix/store
# 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;
hostPackages = with pkgs; [
sh
bash
coreutils
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" = {
extraConfig = ''
reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}