deftsp / blog

0 stars 0 forks source link

Upgrade NixOS through private cache proxy :: Tweak Loop — Tweaking make big things! #2

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

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/

royhuang813 commented 4 years ago

nice