summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>2023-03-17 12:40:16 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2023-03-17 12:44:33 +0100
commit2714c9ef2d6cb42f15c2f284449f602467f0d1c0 (patch)
tree32dc25d0037cfe872c0c40da829da1d2322ea1c6 /doc
parent65f5398dfb2d15413dd2f559ed6d79a5307effd5 (diff)
home: services: ssh-agent: Handle setting of SSH_AUTH_SOCK.
* gnu/home/services/ssh.scm (home-ssh-agent-environment-variables): New procedure. (home-ssh-agent-service-type): Use it as ahome-environment-service type extension. * doc/guix.texi (Secure Shell): Remove advice about, and examples of setting SSH_AUTH_SOCK.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi17
1 files changed, 0 insertions, 17 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 4807f16c0a9..2d42ca8de26 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -42473,23 +42473,6 @@ machines using the @acronym{SSH, secure shell} protocol. With the
42473@code{(gnu home services ssh-agent)} service, you can configure the 42473@code{(gnu home services ssh-agent)} service, you can configure the
42474OpenSSH ssh-agent to run upon login. 42474OpenSSH ssh-agent to run upon login.
42475 42475
42476When using the @code{home-ssh-agent-service-type}, you need to add your
42477@file{~/.bash_profile}:
42478
42479@example
42480SSH_AUTH_SOCK=$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket
42481export SSH_AUTH_SOCK
42482@end example
42483
42484Of course, you can do that using the @code{home-bash-service-type}, by
42485adding something like:
42486
42487@lisp
42488(environment-variables
42489 '(("SSH_AUTH_SOCK"
42490 . "$@{SSH_AUTH_SOCK-$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket@}")))
42491@end lisp
42492
42493Here is an example of a service and its configuration that you could add 42476Here is an example of a service and its configuration that you could add
42494to the @code{services} field of your @code{home-environment}: 42477to the @code{services} field of your @code{home-environment}:
42495 42478