From 2ac41477dad5699b748acfc72d4e91e0e14fa16a Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Sat, 22 Apr 2023 09:58:48 +0200 Subject: [PATCH] gnu: system: Cater for Guix Home in PATH. * gnu/system.scm (operating-system-etc-service): Also add a user's /profile/bin directory to PATH, before /bin. --- gnu/system.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index c17c6e4e98..df1e4e8640 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2020, 2021 Brice Waegeneire ;;; Copyright © 2020 Florian Pelz ;;; Copyright © 2020, 2022 Maxim Cournoyer -;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright © 2020, 2023 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2020, 2022 Efraim Flashner ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 raid5atemyhomework @@ -1037,8 +1037,11 @@ (define* (operating-system-etc-service os) 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 -- 2.39.2