home: symlink-manager: Use existing home-directory symbol.
authorAndrew Tropin <andrew@trop.in>
Fri, 11 Mar 2022 05:43:04 +0000 (08:43 +0300)
committerLudovic Courtès <ludo@gnu.org>
Sun, 20 Mar 2022 18:02:40 +0000 (19:02 +0100)
* gnu/home/services/symlink-manager.scm (update-symlinks-script): Use
existing home-directory symbol instead of additional getenv call.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/home/services/symlink-manager.scm

index 767b1bd..bce5c85 100644 (file)
 
          #$%initialize-gettext
 
-         (let* ((home     (string-append (getenv "HOME") "/.guix-home"))
+         (let* ((home     (string-append home-directory "/.guix-home"))
                 (pivot    (string-append home ".new"))
                 (new-home (getenv "GUIX_NEW_HOME"))
                 (old-home (getenv "GUIX_OLD_HOME")))