guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 06a2b7bd97989445e8a9ffabc781b0cc7fac483f
Author: Rutherther <[email protected]>
AuthorDate: Thu Dec 25 22:20:05 2025 +0100

    system: operating-system-etc-service: Unset GUIX_PROFILE.
    
    This seems to have been omitted, currently users on default Guix System
    installations do have GUIX_PROFILE set to their ~/.config/guix/current.
    This is wrong and can lead to some surprises when sourcing etc/profile
    of a Guix profile.
    
    Followup of 50a2d73eac1577e35b526d3fc91423b97e581aef.
    
    * gnu/system.scm (operating-system-etc-services): Clean up GUIX_PROFILE.
    
    Change-Id: Ia5bfb1907fa7ae887ac0336e6cd1922e611b6bdf
    Signed-off-by: Rutherther <[email protected]>
    Merges: #5119
---
 gnu/system.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/system.scm b/gnu/system.scm
index ff00e318cc..d3b0cd30da 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1113,6 +1113,9 @@ do
   fi
 done
 
+# Clean up after ourselves.
+unset GUIX_PROFILE
+
 # Prepend privileged programs.
 export PATH=/run/privileged/bin:$PATH
 

Reply via email to