~ruther/guix-local

2b6017dd0b031e43de7e66b3e1f3f331c0ab712c — Janneke Nieuwenhuizen 3 years ago 9212459
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
1 files changed, 5 insertions(+), 2 deletions(-)

M gnu/system.scm
M gnu/system.scm => gnu/system.scm +5 -2
@@ 1089,8 1089,11 @@ then
  export `cat /etc/environment | cut -d= -f1`
fi

# Arrange so that ~/.config/guix/current comes first.
for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\"
# Arrange so that ~/.config/guix/current comes first,
# and guix-home comes before guix-profile.
for profile in \"$HOME/.guix-profile\"        \\
               \"$HOME/.guix-home/profile\"   \\
               \"$HOME/.config/guix/current\"
do
  if [ -f \"$profile/etc/profile\" ]
  then