|  | @@ -125,6 +125,17 @@ function install_guix_get_architecture {
 | 
	
		
			
			| 125 | 125 |      fi
 | 
	
		
			
			| 126 | 126 |  }
 | 
	
		
			
			| 127 | 127 |  
 | 
	
		
			
			|  | 128 | +function install_guix_user {
 | 
	
		
			
			|  | 129 | +    install_path=$1
 | 
	
		
			
			|  | 130 | +
 | 
	
		
			
			|  | 131 | +    if ! grep -q 'GUIX_LOCPATH' $install_path/.bashrc; then
 | 
	
		
			
			|  | 132 | +        echo 'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale' >> $install_path/.bashrc
 | 
	
		
			
			|  | 133 | +    fi
 | 
	
		
			
			|  | 134 | +    if ! grep -q 'GUIX_PROFILE' $install_path/.bashrc; then
 | 
	
		
			
			|  | 135 | +        echo 'export GUIX_PROFILE=$HOME/.guix-profile' >> $install_path/.bashrc
 | 
	
		
			
			|  | 136 | +        echo 'source $GUIX_PROFILE/etc/profile' >> $install_path/.bashrc
 | 
	
		
			
			|  | 137 | +    fi
 | 
	
		
			
			|  | 138 | +}
 | 
	
		
			
			| 128 | 139 |  
 | 
	
		
			
			| 129 | 140 |  function install_guix {
 | 
	
		
			
			| 130 | 141 |      if [[ $(app_is_installed install_guix) == "1" ]]; then
 | 
	
	
		
			
			|  | @@ -199,27 +210,10 @@ function install_guix {
 | 
	
		
			
			| 199 | 210 |      for i in /var/guix/profiles/per-user/root/guix-profile/share/info/* ;
 | 
	
		
			
			| 200 | 211 |      do ln -s $i ; done
 | 
	
		
			
			| 201 | 212 |  
 | 
	
		
			
			| 202 |  | -    if ! grep -q 'GUIX_LOCPATH' /root/.bashrc; then
 | 
	
		
			
			| 203 |  | -        echo 'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale' >> /root/.bashrc
 | 
	
		
			
			| 204 |  | -    fi
 | 
	
		
			
			| 205 |  | -    if ! grep -q 'GUIX_LOCPATH' /etc/skel/.bashrc; then
 | 
	
		
			
			| 206 |  | -        echo 'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale' >> /etc/skel/.bashrc
 | 
	
		
			
			| 207 |  | -    fi
 | 
	
		
			
			| 208 |  | -    if ! grep -q 'GUIX_LOCPATH' /home/$MY_USERNAME/.bashrc; then
 | 
	
		
			
			| 209 |  | -        echo 'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale' >> /home/$MY_USERNAME/.bashrc
 | 
	
		
			
			| 210 |  | -    fi
 | 
	
		
			
			| 211 |  | -    if ! grep -q 'GUIX_PROFILE' /root/.bashrc; then
 | 
	
		
			
			| 212 |  | -        echo 'export GUIX_PROFILE=$HOME/.guix-profile' >> /root/.bashrc
 | 
	
		
			
			| 213 |  | -        echo 'source $GUIX_PROFILE/etc/profile' >> /root/.bashrc
 | 
	
		
			
			| 214 |  | -    fi
 | 
	
		
			
			| 215 |  | -    if ! grep -q 'GUIX_PROFILE' /etc/skel/.bashrc; then
 | 
	
		
			
			| 216 |  | -        echo 'export GUIX_PROFILE=$HOME/.guix-profile' >> /etc/skel/.bashrc
 | 
	
		
			
			| 217 |  | -        echo 'source $GUIX_PROFILE/etc/profile' >> /etc/skel/.bashrc
 | 
	
		
			
			| 218 |  | -    fi
 | 
	
		
			
			| 219 |  | -    if ! grep -q 'GUIX_PROFILE' /home/$MY_USERNAME/.bashrc; then
 | 
	
		
			
			| 220 |  | -        echo 'export GUIX_PROFILE=$HOME/.guix-profile' >> /home/$MY_USERNAME/.bashrc
 | 
	
		
			
			| 221 |  | -        echo 'source $GUIX_PROFILE/etc/profile' >> /home/$MY_USERNAME/.bashrc
 | 
	
		
			
			| 222 |  | -    fi
 | 
	
		
			
			|  | 213 | +    install_guix_user /root
 | 
	
		
			
			|  | 214 | +    install_guix_user /etc/skel
 | 
	
		
			
			|  | 215 | +    install_guix_user /home/$MY_USERNAME
 | 
	
		
			
			|  | 216 | +
 | 
	
		
			
			| 223 | 217 |      guix package -i glibc-locales
 | 
	
		
			
			| 224 | 218 |  
 | 
	
		
			
			| 225 | 219 |      install_completed install_guix
 |