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

How do I bypass the binary cache by cachix entirely and build everything on my local machine? #1658

Closed
nalzok opened this issue Jan 3, 2025 · 6 comments
Labels
question Further information is requested

Comments

@nalzok
Copy link

nalzok commented Jan 3, 2025

Hi there, this is a followup question to this thread. The relationship between devenv and cachix is unclear to me, as environment creation and binary caching seems like orthogonal tasks. Do we have to rely on a cachix binary cachix to use devenv?

PS: in that thread I also mentioned that cachix.enable = false; does not silence the warning, contrary to what I have been told. You may want to take another look.

@nalzok nalzok added the question Further information is requested label Jan 3, 2025
@wgordon17
Copy link

Jumping in to give my "me too". I have cachix.enable = false; and still getting "yelled at"

@sandydoo
Copy link
Member

sandydoo commented Jan 6, 2025

PS: in that thread I also mentioned that cachix.enable = false; does not silence the warning, contrary to what I have been told. You may want to take another look.

Thanks, fixed by #1660.

Do we have to rely on a cachix binary cachix to use devenv?

We use a fork of nixpkgs by default which comes with patches for certain integrations. We configure Nix to pull from devenv.cachix.org to serve pre-built binaries for any packages that had to be patched.

Languages that allow configuring a specific version will often have their own caches. The cachix integration can set these up automatically.

@sandydoo
Copy link
Member

sandydoo commented Jan 6, 2025

To disable the Cachix integration and stop devenv from setting up any caches for you (once #1660 lands):

cachix.enable = false;

To disable all substituters (don't do this):

devenv shell --nix-option substitute false

@nalzok
Copy link
Author

nalzok commented Jan 6, 2025

That's great. Thank you! Could you be a little more specific about the "integrations" though? Like, what do they do, why are they necessary, and can I get these integration if I disable the binary cache and build everything on my local machine?

@sandydoo
Copy link
Member

sandydoo commented Jan 8, 2025

Any service or language that we provide. Disabling caching means that you may end up building more than you'd like locally.

@nalzok
Copy link
Author

nalzok commented Jan 8, 2025

Thanks for the answer. That's helpful!

@nalzok nalzok closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants