iancleary / infra

Personal Infrastructure as code
GNU General Public License v3.0
7 stars 1 forks source link

Task: Add SSH Keys in ssh-agent #32

Closed iancleary closed 1 year ago

iancleary commented 1 year ago

eval $(ssh-agent) ssh-add key1 if exists ssh-add key2 if exists

iancleary commented 1 year ago

nixos/users/iancleary/home-manager.nix

iancleary commented 1 year ago

beginning of file

initExtraFirst

Move the instant prompt common file to a different name, or add in the ssh key file logic at the top of that file.

iancleary commented 1 year ago

Didn't do the above...

https://discourse.nixos.org/t/how-to-set-up-a-system-wide-ssh-agent-that-would-work-on-all-terminals/14156 helped.

Solution was to set programs.ssh.startAgent to true.

Closed via https://github.com/iancleary/infra/commit/198f1d075da044f042714f34e90d295329395e60