Upgrade NixOS through private cache proxy :: Tweak Loop — Tweaking make big things!
When I upgrade NixOS for my mini-server with:
$ sudo nixos-rebuild switch --upgrade It tried to download tons of packages from http://nixos-cache.example.com/ which is unbearable slow. Then I tried to build some of them instead of download the prebuild version1:
sudo nixos-rebuild switch --option substitute false The upgrade failed when building gcc for not have enough free space. The SSD of the mini-server have only 5G.
I have a server with socks5 proxy, which can access the cache.
Upgrade NixOS through private cache proxy :: Tweak Loop — Tweaking make big things!
When I upgrade NixOS for my mini-server with: $ sudo nixos-rebuild switch --upgrade It tried to download tons of packages from http://nixos-cache.example.com/ which is unbearable slow. Then I tried to build some of them instead of download the prebuild version1: sudo nixos-rebuild switch --option substitute false The upgrade failed when building gcc for not have enough free space. The SSD of the mini-server have only 5G. I have a server with socks5 proxy, which can access the cache.
https://tweakloop.com/posts/2019/10/upgrade-nixos-through-private-cache-proxy/