Skip to content
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

Configure Cachix signing and upload in CI #429

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twoolie
Copy link
Contributor

@twoolie twoolie commented Mar 11, 2025

This adds the minimal config to sign and push build derivations to Cachix.
Included is documentation for how to configure your client to pull and verify built packages.

You will need to create a (free-tier) account at https://app.cachix.org/signup (i'm assuming you pick the name himmelblau) and generate some signing keys locally with:

$ cachix authtoken <your auth token>
$ cachix generate-keypair himmelblau

The signing key is printed to stdout, and this is the only copy so make sure you copy it straight into github with the name CACHIX_SIGNING_KEY.

Please let me know if you have any issues setting this up, or if you would like some further documentation written.

@dmulder
Copy link
Collaborator

dmulder commented Mar 11, 2025

I have no idea how to install cachix. I looked around, and it seems I need the nix command to install cachix (even to build it), which I also don't have and don't know how to install.

@twoolie
Copy link
Contributor Author

twoolie commented Mar 11, 2025

You will need to have the nix tool installed locally. It can be installed on any linux or darwin system, and will co-exist with your existing package manager. The easiest way is to use this rust-based installer from determinate systems:

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

After you have reloaded your session (to get the new paths on your PATH), you can install the cachix client with:

nix profile install --accept-flake-config 'nixpkgs#cachix'

If you don't want to or can't get it working, you can add me as a contributor and I can set this up on your behalf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants