jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.76k stars 203 forks source link

Can you provide the domestic agent address #2324

Open yinmin2020 opened 1 month ago

yinmin2020 commented 1 month ago

What problem are you trying to solve?

Is your feature request related to a problem? Please describe. Now I rely on when I was in use devbox nix package management tools, download when walk is https://releases.nixos.org/ in China I can have any valid proxy address download speed, has been the timeout won't be able to download. The same is true when downloading packages.

I have raised this issue with the nix project, and the official reply is that devbox project is needed to help integrate domestic mirror, please check this issue

https://github.com/NixOS/infra/issues/488 image

What solution would you like?

I hope to be able to download the package smoothly in the domestic environment

Alternatives you've considered

No response

yinmin2020 commented 1 month ago

hi??

savil commented 2 weeks ago

@yinmin2020 Devbox uses plain nix under the hood. So, you can follow the instructions from https://discourse.nixos.org/t/announcing-tuna-nix-mirror/6144 i.e. https://github.com/dramforever/mirror-web/blob/d7e263d4fe9a9e3078f819468cec18e1c11cf832/_posts/help/2019-02-17-nix.md

Does that work for you?

gcurtis commented 2 weeks ago

Changing the Nix substituter per the links above should help in some cases, but I think there need to be some Devbox changes too.

We hard-code cache.nixos.org in a bunch of places to download cached packages (in the generated flake, calls to nix path-info, etc.). It shouldn't be too hard to replace any references to the cache.nixos.org domain with the mirror though, we just need to decide on how that can be configured.