[bug#77528,v4,6/6] guix-install.sh: Set up extra environment variables for Guix Home.

Message ID 48e2fe38e67f7d7384fde358adb04c1e2b3a6abe.1743736516.git.hako@ultrarare.space
State New
Headers
Series system: /etc/profile: Rearrange to avoid search path duplication. |

Commit Message

Hilton Chain April 4, 2025, 3:23 a.m. UTC
  * 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(-)
  

Patch

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
 }