name: Setup Nix description: Installs nix, sets up cachix and installs a subset of tooling. inputs: authToken: description: Token to pass to cachix tools: description: Tools to install with nix-env -iA runs: using: composite steps: - uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c # v35 with: nix_conf: |- always-allow-substitutes = true max-jobs = auto - uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17 with: name: postgrest authToken: ${{ inputs.authToken }} skipPush: ${{ inputs.authToken == '' }} - if: ${{ inputs.tools }} run: nix-env -f default.nix -iA ${{ inputs.tools }} shell: bash