Subject: [PATCH v4 6/6] guix-install.sh: Set up extra environment variables for Guix Home.

From: Hilton Chain <[email-masked]>
Date: Fri, 4 Apr 2025 11:23:03 +0800

* etc/guix-install.sh (sys_create_init_profile): Set up extra environment
variables for Guix Home.

Change-Id: If0508bf7c87947d89982ad17cabfbf1024a209d0
---
 etc/guix-install.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index f0d37bc384..aabfb4dda4 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -795,8 +795,10 @@ do
   esac
 done
 
-# NOTE: Guix Home handles its own profile initialization in ~/.profile. See
-# info '(guix) Configuring the Shell'.
+# Set up extra environment variables for Guix Home.
+HOME_ENVIRONMENT=$HOME/.guix-home
+[ -f "$HOME_ENVIRONMENT/setup-environment" ] && . "$HOME_ENVIRONMENT/setup-environment"
+unset HOME_ENVIRONMENT
 EOF
 }
 
-- 
2.49.0