From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: What is GUIX_PROFILE for? Date: Sat, 23 Jun 2018 18:40:18 +0200 Message-ID: <878t75foct.fsf@fastmail.com> References: <871scz9evr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWlaP-0001A2-Uw for help-guix@gnu.org; Sat, 23 Jun 2018 12:40:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWlaM-0006th-HV for help-guix@gnu.org; Sat, 23 Jun 2018 12:40:29 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51775) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWlaL-0006tU-UX for help-guix@gnu.org; Sat, 23 Jun 2018 12:40:26 -0400 In-Reply-To: <871scz9evr.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: George Clemmer , help-guix --=-=-= Content-Type: text/plain George Clemmer writes: > What is GUIX_PROFILE is for? > > > First question: > > If I log into a GuixSD vm-image w/ 1 package installed ... > > nemo:~ $ ssh g1@sysi34.local > Last login: Fri Jun 22 08:24:11 2018 from fe80::1c82:5c21:6372:5970%eth0 > g1@sysi34 ~$ guix package -I > znc 1.7.0 out > /gnu/store/giv77vd376nkwpgl08fjfkq87b9mm8xj-znc-1.7.0 > > ... GUIX_PROFILE is not in env ... > > env | grep GUIX GUIX_LOCPATH=/run/current-system/locale > > ... but echo reports it ... > > g1@sysi34 ~$ echo $GUIX_PROFILE > /home/g1/.guix-profile > > That seems odd to me. What does it mean? > > > Second question: > > If I set GUIX_PROFILE to something else, does it have any effect on what > Guix does for me? If GUIX_PROFILE is unset when sourcing the profile, the resulting environment will refer to the generated profile (in the store) rather than the "normal" location of the profile. E.g.: GUIX_PROFILE=/tmp/p1; source /tmp/p1/etc/profile echo $PATH /tmp/p1/bin vs unset GUIX_PROFILE; source /tmp/p1/etc/profile echo $PATH /gnu/store/...-profile/bin In the first case, the resulting environment will always refer to the latest generation of the profile; in the latter, the environment refers to one particular profile generation. This is explained in the top of the generated /etc/profile script, but could perhaps use a mention in the manual. Hope this clears things up :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlsud/IACgkQoqBt8qM6 VPo1DQgAmvsiQFHMz9VnPWs3VqOQTpQdmV0L7PXiCPw3fttyQqVubUUOXhbUBMy7 B24WqXLFFkNDpczB90zP3SxuCzp5gX++QTOSpDerP4Ohd3lgNWkAMLRoEWu5JREI P4UFFyY/xZLQa3Xjl1YkIj4gM8FFi50m3gWxr5goWsQPe6iYMqaJz7OQU3IZqACT wGMi4gU41qa2yVuX4PvJfcdLRYu/eDjni+IGrH56X4wAmpDupS3ptJ3pR9/iAn7h 3GvvyiIwCkR6zAsSexNzhttoqItvgYjzSbA997vw0MFfKfNQ147FkW2dcYKJa0KV ynQVA9pa9Rtsfk2Rcm4GFkYm61V0UA== =Lxn8 -----END PGP SIGNATURE----- --=-=-=--