aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-01-03 19:26:05 +0100
committerLudovic Courtès <ludo@gnu.org>2022-01-03 19:32:08 +0100
commit62ab885daaa31a5e231902ca1b8c50e7b55f1ce2 (patch)
treee6e85a67ae084dce6afcf182da7c3a0e40b2392f /doc/guix.texi
parent4362125033e8c38d1693450d916facf3940af621 (diff)
downloadguix-62ab885daaa31a5e231902ca1b8c50e7b55f1ce2.tar
guix-62ab885daaa31a5e231902ca1b8c50e7b55f1ce2.tar.gz
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.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 43549da388..9c1f30e83f 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -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