nix-community / terraform-nixos

A set of Terraform modules that are designed to deploy NixOS [maintainer=@adrian-gierakowski]
Apache License 2.0
333 stars 61 forks source link

deploy_nixos: add ssh_private_key. Attempt 2 #38

Closed zimbatm closed 3 years ago

zimbatm commented 3 years ago

Sometimes it's useful to pass the SSH key content directly.

Change the default of ssh_agent to only enable when ssh_private_key or ssh_private_key_file is being passed.

Also, refactor things a little bit.