mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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:
parent
a050044255
commit
6337f62dde
1 changed files with 12 additions and 10 deletions
|
@ -39718,18 +39718,20 @@ optionally providing a @file{~/.ssh/known_hosts} file so that @file{ssh}
|
|||
can authenticate hosts you connect to.
|
||||
@end itemize
|
||||
|
||||
Here is a sample configuration you could add to the @code{services}
|
||||
field of your @code{home-environment}:
|
||||
Here is an example of a service and its configuration that you could add
|
||||
to the @code{services} field of your @code{home-environment}:
|
||||
|
||||
@lisp
|
||||
(home-openssh-configuration
|
||||
(hosts (list (openssh-host (name "ci.guix.gnu.org")
|
||||
(user "charlie"))
|
||||
(openssh-host (name "chbouib")
|
||||
(host-name "chbouib.example.org")
|
||||
(user "supercharlie")
|
||||
(port 10022))))
|
||||
(authorized-keys (list (local-file "alice.pub"))))
|
||||
(service home-openssh-service-type
|
||||
(home-openssh-configuration
|
||||
(hosts
|
||||
(list (openssh-host (name "ci.guix.gnu.org")
|
||||
(user "charlie"))
|
||||
(openssh-host (name "chbouib")
|
||||
(host-name "chbouib.example.org")
|
||||
(user "supercharlie")
|
||||
(port 10022))))
|
||||
(authorized-keys (list (local-file "alice.pub")))))
|
||||
@end lisp
|
||||
|
||||
The example above lists two hosts and their parameters. For instance,
|
||||
|
|
Loading…
Reference in a new issue