24 lines
606 B
YAML
24 lines
606 B
YAML
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 <tools>
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: cachix/install-nix-action@v23
|
|
with:
|
|
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
|
- uses: cachix/cachix-action@v12
|
|
with:
|
|
name: postgrest
|
|
authToken: ${{ inputs.authToken }}
|
|
- if: ${{ inputs.tools }}
|
|
run: nix-env -f default.nix -iA ${{ inputs.tools }}
|
|
shell: bash
|