1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-10 16:50:43 +02:00

gnu: system: Cater for Guix Home in PATH.

In <https://issues.guix.gnu.org/63009> it was promised to be pushed to master,
but that didn't seem to have happened.  This resolves that promise.

* gnu/system.scm (operating-system-etc-service): Also add a user's
<guix-home>/profile/bin directory to PATH, before <guix-profile>/bin.

Change-Id: Ibd2866153a211585c4981293027544557f8fa06c
This commit is contained in:
Janneke Nieuwenhuizen 2023-04-22 09:58:48 +02:00
parent 92124591ee
commit 2b6017dd0b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1089,8 +1089,11 @@ then
export `cat /etc/environment | cut -d= -f1` export `cat /etc/environment | cut -d= -f1`
fi fi
# Arrange so that ~/.config/guix/current comes first. # Arrange so that ~/.config/guix/current comes first,
for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\" # and guix-home comes before guix-profile.
for profile in \"$HOME/.guix-profile\" \\
\"$HOME/.guix-home/profile\" \\
\"$HOME/.config/guix/current\"
do do
if [ -f \"$profile/etc/profile\" ] if [ -f \"$profile/etc/profile\" ]
then then