doc: Show (service ...) form in 'home-openssh-service-type' example.

* doc/guix.texi (Secure Shell): Include the (service ...) form in the
example.
This commit is contained in:
Ludovic Courtès 2022-06-19 16:05:19 +02:00
parent a050044255
commit 6337f62dde
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -39718,18 +39718,20 @@ optionally providing a @file{~/.ssh/known_hosts} file so that @file{ssh}
can authenticate hosts you connect to. can authenticate hosts you connect to.
@end itemize @end itemize
Here is a sample configuration you could add to the @code{services} Here is an example of a service and its configuration that you could add
field of your @code{home-environment}: to the @code{services} field of your @code{home-environment}:
@lisp @lisp
(home-openssh-configuration (service home-openssh-service-type
(hosts (list (openssh-host (name "ci.guix.gnu.org") (home-openssh-configuration
(user "charlie")) (hosts
(openssh-host (name "chbouib") (list (openssh-host (name "ci.guix.gnu.org")
(host-name "chbouib.example.org") (user "charlie"))
(user "supercharlie") (openssh-host (name "chbouib")
(port 10022)))) (host-name "chbouib.example.org")
(authorized-keys (list (local-file "alice.pub")))) (user "supercharlie")
(port 10022))))
(authorized-keys (list (local-file "alice.pub")))))
@end lisp @end lisp
The example above lists two hosts and their parameters. For instance, The example above lists two hosts and their parameters. For instance,