From 52997e3dac96a88709e9d671da75bc201192ab08 Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Tue, 23 Apr 2024 17:04:43 +0100 Subject: [PATCH] Install Cachix correctly --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1551d5fb..92dfcd94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,12 +38,15 @@ jobs: - name: Configure Magic Nix Cache uses: DeterminateSystems/magic-nix-cache-action@main - - name: Apply custom Nix configuration + - name: Apply Nix binary cache configuration run: | + nix-env -iA cachix -f https://cachix.org/api/v1/install + cachix use crane + cachix use nix-community sudo tee -a /etc/nix/nix.conf > /dev/null < "$HOME/.direnvrc" nix-env -f "" -iA direnv -iA nix-direnv + direnv allow - name: Update `/nix/store` run: | nix develop --command true - direnv allow - name: Run CI tests run: |