Announcing TUNA Nix mirror

For Nix users in China, the slow download speed of 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

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 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.


A bit of implementation detail: Yes I had to avoid nix copy which decompresses and recompresses packages. xz is terribly computationally heavy and instantly turns the mirroring server into a build farm. :laughing: As described in this comment I just used nix path-info to get the narinfo data and went from there.

:nix_parrot: fantastic!

Excellent! I was hoping that regional mirroring might become a thing. My experience in Europe has been that cache lookups are transparent but in India I seem to find each cache miss is noticeable.

Just a quick notice: the mirror has been failing because of the recent changes to I’m going to fix this hopefully by grabbing the listings from S3.

Update: The mirror is now updating normally.

1 Like

What changes have you encountered?


1 Like