aboutsummaryrefslogtreecommitdiff
path: root/tw/home.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home.scm')
-rw-r--r--tw/home.scm13
1 files changed, 7 insertions, 6 deletions
diff --git a/tw/home.scm b/tw/home.scm
index fc969164..c5f2934f 100644
--- a/tw/home.scm
+++ b/tw/home.scm
@@ -199,7 +199,10 @@
(openssh-host (name host) (port port) (user "timo")))
(export tw-openssh-configuration)
-(define* (tw-openssh-configuration #:key (proxy-to-cern? #t))
+(define* (tw-openssh-configuration
+ #:key
+ (default-ssh-key "~/.local/share/ssh-keys/id_ed25519")
+ (cern-ssh-key "~/.local/share/ssh-keys/cern_id_rsa"))
(let ((no-proxy (list (proxy-jump (host-name "none")))))
(home-openssh-configuration
(hosts
@@ -258,10 +261,8 @@
,(openssh-host
(name "*.cern.ch")
(user "twilken")
- (identity-file "~/.local/share/ssh-keys/cern_id_rsa")
- (proxy (if proxy-to-cern?
- (list (proxy-jump (host-name "lxtunnel.cern.ch")))
- no-proxy))
+ (identity-file cern-ssh-key)
+ (proxy (list (proxy-jump (host-name "lxtunnel.cern.ch"))))
(extra-content "\
# Kerberos authentication
GSSAPIAuthentication yes
@@ -272,6 +273,6 @@
;; manages that and might delete keys there.
,(openssh-host
(name "*")
- (identity-file "~/.local/share/ssh-keys/id_ed25519")
+ (identity-file default-ssh-key)
;; Remote servers probably don't know about xterm-kitty.
(extra-content "SetEnv TERM=xterm-256color")))))))