ssh config for kestrel with templating

This commit is contained in:
Tyler Starr 2024-07-23 00:25:43 -07:00
parent efe2f4c914
commit 13ae39db7d
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +0,0 @@
Host github.com
AddKeysToAgent yes
IdentityFile /run/agenix/git/github_personal

View File

@ -0,0 +1,12 @@
Host github.com
AddKeysToAgent yes
IdentityFile /run/agenix/git/github_personal
{{ if eq .chezmoi.hostname "kestrel" }}
Host torus
AddKeysToAgent yes
IdentityFile /run/agenix/ssh/kestrel/id_ed25519
Host bulwark
AddKeysToAgent yes
IdentityFile /run/agenix/ssh/kestrel/id_ed25519
{{- end }}