-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Consider using CDN for serving the nixpkgs flake just as we did with nix channels? #6975
Comments
I'm not sure if this issue belongs to the nix repository per se or if it belongs to https://github.com/nixos/flake-registry |
German internet strikes once again. Also downloading via the GitHub Api is not ideal when the IP is shared and one person quickly hits the rate limit. |
I think in this case the problem is not German Internet but GitHub API not being super suitable for content Delivery . I don't have any problems with channels.nixos.org or cache.nixos.org |
I am not sure if you are aware, but
This doesn't solve the underlying problem, but you will have a much more generous access limit. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
Solved by NixOS/infra#562 |
Is your feature request related to a problem? Please describe.
Fetching nixpkgs through flakes takes several minutes for me on gigabit internet because Github has very bad peering with many parts of the world or seems to for some reason throttle bandwidth to German IP addresses Whilst Nix channel updates are basically instant (Takes 1 second to fetch).
Describe the solution you'd like
nix run nixpkgs#hello
does not fetch nixpkgs repo from Github's CDN but downloadsnixexprs.tar.gz
from a proper CDN like Fastly (Just like https://channels.nixos.org). Fastly (or other CDN) can take care of serving the flake contents quickly and efficiently which GitHub seems to not be good at in current state.Similar to #6717
Describe alternatives you've considered
Stop using flakes because they are too slow to use with nixpkgs at the moment
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: