Limit bandwidth used by Nix?


#1

Is there a way to limit the network bandwidth used by Nix? A way to limit the bandwidth of those dowloads done by curl, e.g. by setting CURLOPT_MAX_RECV_SPEED_LARGE, would suffice for me.


#2

Just setting that should be sufficient. If you’re using nix-daemon, you’ll have to set the environment variable in the systemd service file. Or for one-offs, set it locally and also clear the NIX_REMOTE variable to force local operation instead of going through the daemon.

Unless you’re talking about downloads done by curl inside the sandbox for source fetching?