cachix/Install Nix
Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 6, 2026
- Maintenance Recency
- Activelast commit Jul 9, 2026
- License
- Apache 2.0
Pinned Snippet
uses: cachix/install-nix-action@a49548c11d9846ad46ecc0115273879b045f001c # v31.10.7tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| extra_nix_config | Gets appended to `/etc/nix/nix.conf` if passed. | — | — |
| github_access_token | Configure Nix to pull from GitHub using the given GitHub token. | — | — |
| install_url | Installation URL that will contain a script to install Nix. | — | — |
| install_options | Additional installer flags passed to the installer script. | — | — |
| nix_path | Set NIX_PATH environment variable. | — | — |
| enable_kvm | Enable KVM for hardware-accelerated virtualization on Linux, if available. | no | true |
| set_as_trusted_user | Add current user to `trusted-users`. | no | true |
Outputs
no outputs