Skip to content

Commit

Permalink
Add default SSH identify
Browse files Browse the repository at this point in the history
This means that the key is automatically added to the agent in the following
scenario:
$ ssh sam@homelab

Whereas before the only way was explicitly:
$ ssh-add

It remains to be seen if this solves the issue for the likes of Jujutsu, though.
  • Loading branch information
samhh committed Dec 19, 2024
1 parent 26b5d77 commit ab84706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions home/auth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
extraConfig = ''
IdentityFile = ~/.ssh/id_ed25519
'';
};
}

0 comments on commit ab84706

Please sign in to comment.