From 4350c266160a0c35fcf686aafe835f1963660195 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 12 Feb 2025 13:04:36 -0600 Subject: [PATCH] add ssh setup --- .github/actions/nix/action.yml | 10 +++++++++- .github/workflows/update.yml | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/nix/action.yml b/.github/actions/nix/action.yml index fc7fb88..8742fce 100644 --- a/.github/actions/nix/action.yml +++ b/.github/actions/nix/action.yml @@ -27,7 +27,15 @@ runs: BTRFS: ${{ inputs.btrfs }} run: exec ${{ github.action_path }}/prepare.sh - - uses: daylinmorgan/lix-gha-installer-action@latest + # need ssh access for `oizys cache --service harmonica` + - name: Setup SSH + uses: MrSquaare/ssh-setup-action@v3 + with: + host: nix-cache.dayl.in + private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Install Lix + uses: daylinmorgan/lix-gha-installer-action@latest with: extra-conf: ${{ inputs.nix_conf }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f171303..97d7ed9 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -61,6 +61,7 @@ jobs: - name: Build run: > + NIX_SSHOPTS='-l daylin' nix run . -- cache