-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add setup-nix composite action #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Setup Nix | ||
| description: Install upstream Nix and enable the shared Cachix binary cache. | ||
| inputs: | ||
| cachix-name: | ||
| description: Name of the Cachix cache to use. | ||
| required: false | ||
| default: opendefensecloud | ||
| cachix-auth-token: | ||
| description: >- | ||
| Cachix auth token. Leave empty to fall back to a read-only cache, which | ||
| is what happens on fork pull requests, where secrets are unavailable. | ||
| required: false | ||
| default: '' | ||
| cachix-signing-key: | ||
| description: >- | ||
| Cachix signing key. Empty disables pushing to the cache. | ||
| required: false | ||
| default: '' | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install nix | ||
| uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 | ||
| with: | ||
| # Use upstream Nix, not the Determinate fork (avoids the | ||
| # determinate-nixd binary + FlakeHub auto-enablement we don't want). | ||
| # Upstream announced this option would stop working on 2026-01-01; | ||
| # nix-installer still honours --prefer-upstream-nix as of 2026-08-31, | ||
| # but the action always fetches the latest installer, so this is not | ||
| # pinned. If it ever flips, this is the one place to change. | ||
| determinate: false | ||
| # Don't post install telemetry to Determinate Systems. | ||
| diagnostic-endpoint: '' | ||
| - name: Use ${{ inputs.cachix-name }} Cachix cache | ||
| uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17 | ||
| with: | ||
| name: ${{ inputs.cachix-name }} | ||
| authToken: ${{ inputs.cachix-auth-token }} | ||
| signingKey: ${{ inputs.cachix-signing-key }} | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.