Closed Ninlives closed 4 years ago
NixOps will, by default, prefer to substitute paths on the remote system directly from the cache.
Consider the following (probably the most common NixOps deployment scenario): You are deploying from your laptop to a cloud provider, let's say EC2. You wouldn't want to stress someones home internet connection with perhaps multiple gigabytes of data being copied from a potentially very slow connection when substituting from https://cache.nixos.org is orders of magnitudes faster.
There is a knob you can tune to adjust this behaviour, namely deployment.hasFastConnection = true;
.
I'm closing this as it's working as intended.
So I tried to deploy to my raspberrypi, and I noticed nixops tries to copy closure from binary cache, but those paths are already in my laptop, why are these paths copied?