Otherwise in particular https://cache.nixos.org won't work in the daemon. (cherry picked from commit eff80419c7)
eff80419c7