diff --git a/.github/actions/setup-nix/action.yaml b/.github/actions/setup-nix/action.yaml index d127992..e2ef09f 100644 --- a/.github/actions/setup-nix/action.yaml +++ b/.github/actions/setup-nix/action.yaml @@ -6,25 +6,8 @@ description: Setup nix runs: using: composite steps: - - name: install jq - shell: bash - run: | - if ! (command -v jq) &> /dev/null - then - sudo apt install -y --no-install-recommends jq - fi - - id: nixpkgs - shell: bash - run: | - if [ -f flake.lock ]; then - nixpkgs="flake:$(cat flake.lock | jq -r '.nodes.nixpkgs.locked // empty | .type + ":" + .owner + "/" + .repo + "/" + .rev')" - else - nixpkgs=channel:nixos-unstable - fi - echo "nixpkgs=$nixpkgs" >> "$GITHUB_OUTPUT" - - uses: cachix/install-nix-action@v25 - with: - nix_path: nixpkgs=${{ steps.nixpkgs.outputs.nixpkgs }} + - uses: nixbuild/nix-quick-install-action@v27 + with: {load_nixConfig: false} - name: Prepare nix dev shell shell: nix develop .#ci -c bash -e {0} run: |