name: 'Install nix'
description: 'Install nix and populate the store for the repo flake'

inputs:
  github_token:
    description: "github token to authenticate with to avoid being rate-limited"
    default: ${{ github.token }}
    required: false

runs:
  using: composite
  steps:
    - uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f #v31
      with:
        github_access_token: ${{ inputs.github_token }}
    - run: nix develop --command echo "dependencies installed"
      shell: bash
