determinatesystems/Magic Nix Cache
Free, no-configuration Nix cache. Cut CI time by 50% or more by caching to GitHub Actions' cache.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| use-gha-cache | Whether to upload build results to the Github Actions cache. Set to "no-preference" or null to have the GitHub Actions cache turn on if it is available, and FlakeHub Cache is not available (default). Set to "enabled" or true to explicitly request the GitHub Actions Cache. Set to "disabled" or false to explicitly disable the GitHub Actions Cache. | no | — |
| listen | The host and port to listen on. | — | 127.0.0.1:37515 |
| upstream-cache | Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache. | — | https://cache.nixos.org |
| diagnostic-endpoint | Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string. | — | - |
| use-flakehub | Whether to upload build results to FlakeHub Cache. Set to "no-preference" or null to have FlakeHub Cache turn on opportunistically (default). Set to "enabled" or true to explicitly request FlakeHub Cache. Set to "disabled" or false to explicitly disable FlakeHub Cache. | no | — |
| flakehub-cache-server | The FlakeHub binary cache server. | — | https://cache.flakehub.com |
| flakehub-api-server | The FlakeHub API server. | — | https://api.flakehub.com |
| flakehub-flake-name | The name of your flake on FlakeHub. The empty string will autodetect your FlakeHub flake. | no | "" |
| startup-notification-port | The port magic-nix-cache uses for daemon startup notification. | — | 41239 |
| diff-store | Whether or not to diff the store before and after Magic Nix Cache runs | no | false |
| source-binary | Run a version of the cache binary from somewhere already on disk. Conflicts with all other `source-*` options. | no | — |
| source-branch | The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | no | — |
| source-pr | The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | no | — |
| source-revision | The revision of `nix-magic-nix-cache` to use. Conflicts with all other `source-*` options. | no | — |
| source-tag | The tag of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | no | — |
| source-url | A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options. | no | — |
| source-checksums-url | URL of a `shasum`-format checksums file listing the SHA-256 of each artifact. Used together with `source-checksums-sha256` to verify the downloaded installer. | no | — |
| source-checksums-sha256 | Pinned SHA-256 (hex) of the file served at `source-checksums-url`. Must be set together with `source-checksums-url`. | no | — |
| _internal-strict-mode | Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows. | no | false |
Outputs
no outputs