diff --git a/.github/workflows/check-flake.yml b/.github/workflows/check-flake.yml index f2b1840f..f9c6a004 100644 --- a/.github/workflows/check-flake.yml +++ b/.github/workflows/check-flake.yml @@ -12,10 +12,16 @@ jobs: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: cachix/cachix-action@v15 + with: + name: mrjones2014-dotfiles + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Add nix-community cache + run: cachix use nix-community - name: Check Nix flake inputs uses: DeterminateSystems/flake-checker-action@v9 with: fail-mode: true send-statistics: false - name: Run nix flake check - run: nix flake check + run: nix flake check --accept-flake-config diff --git a/.github/workflows/nix-build-and-cache.yml b/.github/workflows/nix-build-and-cache.yml index a74a65cb..f67e2b9e 100644 --- a/.github/workflows/nix-build-and-cache.yml +++ b/.github/workflows/nix-build-and-cache.yml @@ -33,11 +33,11 @@ jobs: with: extra_nix_config: | extra-platforms = ${{ matrix.extraPlatforms }} - - uses: cachix/cachix-action@v15 with: name: mrjones2014-dotfiles authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - + - name: Add nix-community cache + run: cachix use nix-community - name: build all definitions - run: nix run github:Mic92/nix-fast-build -L -- --skip-cached --no-download --no-nom --eval-workers 1 --eval-max-memory-size 2048 --flake .#checks.${{ matrix.system }} + run: nix run github:Mic92/nix-fast-build -L -- --skip-cached --no-download --no-nom --eval-workers 1 --eval-max-memory-size 2048 --flake .#checks.${{ matrix.system }} --accept-flake-config