doc: Avoid (getenv "HOME") in 'machines.scm' example.

Fixes <https://issues.guix.gnu.org/52517>.
Reported by zimoun <zimon.toutoune@gmail.com>.

* doc/guix.texi (Daemon Offload Setup): Avoid misleading (getenv
"HOME") in example.
This commit is contained in:
Ludovic Courtès 2022-01-03 19:26:05 +01:00
parent 4362125033
commit 62ab885daa
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1250,9 +1250,10 @@ The @file{/etc/guix/machines.scm} file typically looks like this:
(systems (list "aarch64-linux"))
(host-key "ssh-rsa AAAAB3Nza@dots{}")
(user "alice")
(private-key
(string-append (getenv "HOME")
"/.ssh/identity-for-guix"))))
;; Remember 'guix offload' is spawned by
;; 'guix-daemon' as root.
(private-key "/root/.ssh/identity-for-guix")))
@end lisp
@noindent