Enable ssh compression with `nix copy`?

I’m using morph to deploy, and it calls nix copy ... ssh://..., and I’d like to know how I can turn on ssh compression for that.

Is there a setting in nix.conf?

You probably want to do this in your ssh config.

Hmm not ideal, many hosts to manage.

Actually, I think I found the answer, with Nix 2.4 at least: adding ?compress=true to the hostname seems to do the trick. I created add `?compress=true` to ssh store urls · Issue #178 · DBCDK/morph · GitHub to get this into morph.