NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.82k stars 363 forks source link

Allow or document way to specify initial ssh key for none backend. #899

Open andrewchambers opened 6 years ago

andrewchambers commented 6 years ago

I am using nixops to manage machines in an automated way, the machines are provisioned outside of nixops, so i need a way to specify the initial ssh key. Using a global ssh config file is not suitable.

I am thinking something like an attribute option to specify to nixops which externally generated ssh keys to use that works across all backends.

andrewchambers commented 6 years ago

Another alternative may be an option such as a "NIXOPS_SSH_CONFIG" environment variable.

coretemp commented 6 years ago

I prefer the attribute version of this.

andrewchambers commented 6 years ago

The option version with the pull request open is modeled after the option to nix-copy-closure.