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

Cachix substituter not being picked up by devenv #1527

Closed
samchouse opened this issue Oct 16, 2024 · 5 comments
Closed

Cachix substituter not being picked up by devenv #1527

samchouse opened this issue Oct 16, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@samchouse
Copy link

samchouse commented Oct 16, 2024

Describe the bug
Devenv complains about its cachix instance not being added to trusted substituters even though it is added.

To reproduce
Since I've added devenv as a trusted substituter I'd expect cachix to work. https://gist.github.com/samchouse/0cba1c6787af2d26a0c7a93a681cc292

Version
devenv 1.3.0 (x86_64-linux) via nixpkgs (home.packages)

@samchouse samchouse added the bug Something isn't working label Oct 16, 2024
@samchouse samchouse changed the title Cachix support not being picked up by devenv Cachix substituter not being picked up by devenv Oct 16, 2024
@rvveber
Copy link

rvveber commented Oct 16, 2024

Same issue here!
In addition the recommendation on how to add them is incorrect:

b) Add binary caches to /etc/nix/nix.conf yourself by editing configuration.nix:
{
    nix.extraOptions = ''
        extra-substituters = https://devenv.cachix.org;
        extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU=;
    '';
}

Should be without the ;'s at the end.

@sandydoo
Copy link
Member

devenv doesn't check your configured substituters, so the only way to disable this atm is to add the following to your devenv.nix:

cachix.enable = false;

I'll try to get this fixed.

The error message should've at least mentioned this, but it somehow got lost over time.

@samchouse
Copy link
Author

Does this completely disable cachix meaning I have to build everything myself?

@sandydoo
Copy link
Member

You have both the nixos and devenv caches set up in /etc/nix/nix.conf, so you're all set up. This tells devenv not to try to set them up for you.

@samchouse
Copy link
Author

Is this normal with cache.enable = false;?

warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants