Nixops: Deploy to NixOS machine with SSH key

Doing as suggested in the manual

{
  webserver =
    { config, pkgs, ... }:
    { deployment.targetHost = "1.2.3.4";
    };
}

works really well, but it prompts for a password. Isn’t there a way to use a local SSH key for the connection? Seems like there should be one but I found nothing in nixops/nix/options.nix

You could ssh-add the key before running the nixops commands. But no, I don’t think there’s a nixops option to do it automatically. I wager it wouldn’t be that difficult of a contribution to nixops though.