For Nix users in China, the slow download speed of https://cache.nixos.org and other services has been a long standing issue. After quite a bit of time and work, I’m pleased to announce that has the TUNA mirror of Nix/Nixpkgs/NixOS has completed its initial download and is up and running.
If you’re experienced with Nix, this list of URLs should get you started: (URLs listed relative to https://mirrors.tuna.tsinghua.edu.cn)
- Nix mirror: /nix
- Nix install script: /nix/latest/install
- Nix channels: /nix-channels
- Binary cache mirror: /nix-channels/store
By the point you read this, the help page (Chinese only, sorry) at /help/nix might have been updated to include more detailed instructions on using this mirror in your own setup. If not you can check it out on GitHub.
The scripts downloading files for this mirror is available in https://github.com/tuna/tunasync-scripts/ as
nix*.py, for those who might need it. I’m sorry that this is undocumented for now, but I’ll try my best to help you get those working if you want to use them.
I sincerely hope that this would help the growing China Nix community, and make it easier to get started with Nix for newcomers in China. If you use it and find it helpful, I’d be glad to know. If you find any problems, please also don’t hesitate to report and help make this mirror better.
Many thanks for everyone involved in this. Without the cooperation of the generous support from the Nix community and the help from mirror maintainers from TUNA and USTCLUG, this would have never happened. Although I’m the one talking here I feel hugely indebted for the help received allowing able to do this.