For me, it isn't always convenient to set ssh options in the nixos configuration. I use different hosts to deploy from and they have different network setups, so target host has different addresses. I could use ~/.ssh/config but imo it is more convenient to use environment variables.
This commit adds ability to set REMOTE_HOST, REMOTE_USER and other options with environment variables.
For me, it isn't always convenient to set ssh options in the nixos configuration. I use different hosts to deploy from and they have different network setups, so target host has different addresses. I could use
~/.ssh/config
but imo it is more convenient to use environment variables. This commit adds ability to set REMOTE_HOST, REMOTE_USER and other options with environment variables.