summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRutherther <rutherther@ditigal.xyz>2026-01-16 23:16:47 +0100
committerRutherther <rutherther@ditigal.xyz>2026-02-07 17:00:10 +0100
commit7fd75725c5daf9d3bdfd9122dcdb37f650493d18 (patch)
tree42d010c9902f905bf6f1b56367d55334cc86ad1e
parent175a8d86c931a9f520d0e7f94831a55c364a32fe (diff)
guix-install.sh: Set Guile load paths in zzz-guix.sh.
Reverts bb2263102ace6f178410cdc1e49a315bb51a20da. Follow up of 4aece62a754996bb6af03f45ceaeb0f3fc929809 that makes this safe. * etc/guix-install.sh (sys_create_init_profile): Set GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH to user's current-guix profile. Change-Id: I52e02d779c1ece4570e355fcc12193ef87b89e50 Signed-off-by: Rutherther <rutherther@ditigal.xyz> Merges: #5686
-rwxr-xr-xetc/guix-install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index de0a916e65b..5d4b3facef4 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -796,6 +796,10 @@ export PATH="$GUIX_PROFILE/bin${PATH:+:}$PATH"
# trailing colon so the system default search path is used.
export INFOPATH="$GUIX_PROFILE/share/info:${INFOPATH:-}"
export MANPATH="$GUIX_PROFILE/share/man:${MANPATH:-}"
+# Expose the latest Guix modules to Guile so guix shell and repls spawned by
+# e.g. Geiser work out of the box.
+export GUILE_LOAD_PATH="$GUIX_PROFILE/share/guile/site/3.0${GUILE_LOAD_PATH:+:$GUILE_LOAD_PATH}"
+export GUILE_LOAD_COMPILED_PATH="$GUIX_PROFILE/lib/guile/3.0/site-ccache${GUILE_LOAD_COMPILED_PATH:+:$GUILE_LOAD_COMPILED_PATH}"
# User's default profile, if it exists
GUIX_PROFILE="$HOME/.guix-profile"