guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 04/05: doc: Avoid (getenv "HOME") in 'machines.scm' example.
Date: Mon, 3 Jan 2022 13:34:05 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 62ab885daaa31a5e231902ca1b8c50e7b55f1ce2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 3 19:26:05 2022 +0100

    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.
---
 doc/guix.texi | 7 ++++---
 1 file 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]