[bug#77035,1/2] gnu: system: Order imperative profiles first in etc/profile.

Message ID bf32b4c6c4ccb463a99faa3e4d0c90c1f5ae35bc.1742043963.git.hako@ultrarare.space
State New
Headers
Series home: setup-environment: Avoid prepending duplicated PATH. |

Commit Message

Hilton Chain March 15, 2025, 1:24 p.m. UTC
  * gnu/system.scm (operating-system-etc-service): Swap profile order for
guix-package and guix-home.

Change-Id: Id32568772f4944c22ad830e7416a97d6b0adb66c
---
 gnu/system.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gnu/system.scm b/gnu/system.scm
index 0d98e5a036..6c4b4efc3a 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1090,9 +1090,9 @@  (define* (operating-system-etc-service os)
 fi
 
 # 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\"   \\
+# and guix-profile comes before guix-home.
+for profile in \"$HOME/.guix-home/profile\"   \\
+               \"$HOME/.guix-profile\"        \\
                \"$HOME/.config/guix/current\"
 do
   if [ -f \"$profile/etc/profile\" ]