summaryrefslogtreecommitdiff
path: root/johnlepikhin/home/ssh.scm
diff options
context:
space:
mode:
authorEvgenii Lepikhin <e.lepihin@postgrespro.ru>2023-08-07 19:34:33 +0300
committerEvgenii Lepikhin <e.lepihin@postgrespro.ru>2023-08-07 19:34:33 +0300
commit37293a60b9ff522d04855ea0e3ed9d9bff6f4112 (patch)
tree5e76a0cc714848dd27f298588064c716695a5378 /johnlepikhin/home/ssh.scm
parentfeat: Allow multiple identity files (diff)
downloadjohnlepikhin-guix-channel-37293a60b9ff522d04855ea0e3ed9d9bff6f4112.tar.gz
feat: Added SSH option ForwardAgent
Diffstat (limited to 'johnlepikhin/home/ssh.scm')
-rw-r--r--johnlepikhin/home/ssh.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/johnlepikhin/home/ssh.scm b/johnlepikhin/home/ssh.scm
index 37c3f15..4144351 100644
--- a/johnlepikhin/home/ssh.scm
+++ b/johnlepikhin/home/ssh.scm
@@ -45,6 +45,7 @@
(comment home-ssh-host-configuration-comment (default #f))
(identity-file home-ssh-host-configuration-identity-file (default (list)))
(add-ssh-keys-to-agent home-ssh-host-configuration-add-ssh-keys-to-agent (default #f))
+ (forward-agent home-ssh-host-configuration-forward-agent (default #f))
)
(define (serialize-home-ssh-host-configuration val)
@@ -80,6 +81,8 @@
(home-ssh-host-configuration-identity-file val)))
(if (home-ssh-host-configuration-add-ssh-keys-to-agent val)
" AddKeysToAgent yes\n" "")
+ (if (home-ssh-host-configuration-forward-agent val)
+ " ForwardAgent yes\n" "")
"\n"))
(define-record-type* <home-ssh-configuration>