[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61483] [PATCH 0/5] Some basic Home Shepherd Services
From: |
Ludovic Courtès |
Subject: |
[bug#61483] [PATCH 0/5] Some basic Home Shepherd Services |
Date: |
Thu, 16 Mar 2023 12:01:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi,
Janneke Nieuwenhuizen <janneke@gnu.org> skribis:
> From: "Janneke Nieuwenhuizen" <janneke@gnu.org>
>
> * gnu/home/services/ssh.scm: (<home-ssh-agent-configuration>): New type.
> (home-ssh-agent-services): New procedure.
> (home-ssh-agent-service-type): New variable.
> * doc/guix.texi (Secure Shell): Document it.
Applied!
> +When using the @code{home-ssh-agent-service-type}, you need to add your
> +@file{~/.bash_profile}:
> +
> +@example
> +SSH_AUTH_SOCK=$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket
> +export SSH_AUTH_SOCK
> +@end example
> +
> +Of course, you can do that using the @code{home-bash-service-type}, by
> +adding something like:
> +
> +@lisp
> +(environment-variables
> + '(("SSH_AUTH_SOCK"
> + . "$@{SSH_AUTH_SOCK-$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket@}")))
> +@end lisp
Maybe we should automate that by having ‘home-ssh-agent-service-type’
extend ‘home-environment-variables-service-type’? That way it’d work
out-of-the-box regardless of the shell being used.
Thanks,
Ludo’.
[bug#61483] [PATCH 0/5] Some basic Home Shepherd Services,
Ludovic Courtès <=