devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Can you provide the domestic agent address

Open yinmin2020 opened this issue 1 year ago • 1 comments

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 avatar Oct 06 '24 04:10 yinmin2020

hi??

yinmin2020 avatar Oct 13 '24 05:10 yinmin2020

@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?

savil avatar Oct 28 '24 20:10 savil

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.

gcurtis avatar Oct 28 '24 21:10 gcurtis