-
Notifications
You must be signed in to change notification settings - Fork 244
Airgap setup with nix substituters not working #2599
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
Comments
The nix cache URL is hardcoded here: devbox/internal/devpkg/narinfo_cache.go Line 26 in 3c441c8
Should't substitutors be considered here, if defined? |
Relates to #2324 |
+1 |
I allow overwriting all occurrences of the hard coded nixpkgs urls via an environment variable. This seems to work for my case. perhaps something like that could be implemented in devbox. |
Hi @bakito, Thank you for this information. I am using Artifactory for caching. So wanted to know whether this env variable allow an url something like https://username:password@artifactory_url ? |
Technically this should work. |
What happened?
Hi,
We are running nix with substituters pointing to an artifactory instance, as we do not have direct internet access.
Hence, we defined substituters in /etc/nix/nix.conf.
When working directly with nix-shell this is working.
Using devbox, it seems to ignore the substituters setting and tries always to connect to https://cache.nixos.org
Is there a way to configure devbox to also consider the substituters to allow running in airgap mode?
Steps to reproduce
substituters
in/etc/nix/nix.conf
pointing the artifactory (or other proxcy) URLnix-shell -p go
-> worksCommand
shell
devbox.json
Devbox version
0.14.0
Nix version
2.28.2
What system does this bug occur on?
Linux (x86-64)
Debug logs
The text was updated successfully, but these errors were encountered: