Skip to content

Commit

Permalink
chore: add wyse ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
miszo committed Sep 22, 2023
1 parent b748e83 commit 843c6fb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/.chezmoiignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ Support

**/.DS_Store

{{ if not .isWork }}
{{ if .isPersonal -}}
.config/glab-cli
.config/op/plugins/used_items/glab.json
.config/op/plugins/glab.json
.gemrc
{{ end }}
.ssh/miszo_wyse.pub
{{ end -}}
3 changes: 3 additions & 0 deletions home/private_dot_ssh/authorized_keys.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
{{ end -}}
{{ if .isWork -}}
{{ onepasswordRead "op://Private/GitLab SSH key/public key" .opWorkAccount | trim }}
{{ end -}}
{{ if .isPersonal -}}
{{ onepasswordRead "op://dev/WySe SSH key/public key" .opPersonalAccount | trim }}
{{ end -}}
8 changes: 8 additions & 0 deletions home/private_dot_ssh/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ Include ~/.orbstack/ssh/config

Host *
IdentityAgent "~/.1password/agent.sock"

{{ if .isPersonal -}}
Host wyse
HostName {{ onepasswordRead "op://dev/WySe/hostname" .opPersonalAccount | trim }}
User {{ onepasswordRead "op://dev/WySe/username" .opPersonalAccount | trim }}
IdentityFile ~/.ssh/miszo_wyse.pub
IdentitiesOnly yes
{{ end -}}
1 change: 1 addition & 0 deletions home/private_dot_ssh/miszo_wyse.pub.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- onepasswordRead "op://dev/WySe SSH key/public key" .opPersonalAccount | trim -}}

0 comments on commit 843c6fb

Please sign in to comment.