unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Maxime Devos <maximedevos@telenet.be>, guix-devel@gnu.org
Subject: Re: Multiple profiles with Guix Home
Date: Thu, 05 May 2022 19:19:26 +0200	[thread overview]
Message-ID: <a2c21097b9acb5acacd8bd4f79d61478a3ee047b.camel@gmail.com> (raw)
In-Reply-To: <06de1b665cea1f4ca6e2b032168a38f7dbf8a82a.camel@telenet.be>

Am Donnerstag, dem 05.05.2022 um 19:07 +0200 schrieb Maxime Devos:
> Hi,
> 
> Previously, you wrote that people need to write shell wrappers.
> 
> > > [ cross-profile installation things ]
> > The solution to that would be evaluating the search paths over all
> > enabled packages.  However, I do think it's fine to do as we did
> > before for now; people are already used to this aspect of Guix,
> > _but the fact that they need to code up their own shell wrappers to
> > manage multiple profiles is not good optics imo_.
> 
> (emphasis mine)  However, now you write that the mechanism already
> exists, all the user needs to do is "source .../etc/profile.sh",
> without any shell wrappers.
For the record, you don't _need_ to source any of those profiles by
hand.  You can choose to if you so desire, same as with every other
profile.  enabled? #f provides a way to specify that this is what you
desire.  Further, this is not management.  The profiles are still built
and updated using Guix Home -- unless you don't specify any manifest,
in which case they aren't.  The only degenerate case here would be
specifying both enabled? #f and no manifest.

> Am Donnerstag, dem 05.05.2022 um 13:05 +0200 schrieb Maxime Devos:
> > > Liliana Marie Prikler schreef op zo 03-10-2021 om 12:50 [+0200]:
> > > > On init/reconfigure, `guix home' creates/updates all
> > > > home-profiles which have a home-profile-manifest that is not #f
> > > > and links them to the appropriate locations.  It also creates a
> > > > shell startup script that loads those profiles that are
> > > > enabled?, even if they have no manifest (this can be used to
> > > > e.g. declare a pull profile, which `guix home' can't manage).  
> > > 
> > > I assume there will be some mechanism to load disabled profiles
> > > (otherwise the disabled profiles seem a bit pointless to me, why
> > > not remove them with #; and avoid some build time)?
> > This mechanism already exists, it's source
> > /path/to/profile/etc/profile.sh.
> 
> But IIUC, "source .../etc/profile.sh" is not sufficient because of
> the search paths issue, so people need shell wrappers to make sure
> all search paths are set?  This seems contradictory to me.  Or am I
> mistaken on which shell wrappers you were referring to?
My assumption here is that the split profiles are still "complete",
hence thematic profiles.  A thematic profile could for instance consist
of all your emacs packages, in which case only emacs packages are added
into the union-build and only EMACSLOADPATH needs to be considered. 
Another thematic profile could consist of all the guile packages you
need always, e.g. guile-readline and guile-colorized, though both are
already in the system.  A third thematic profile could be all your
python, r, ..., packages, which you absolutely, no questions asked,
need to have sourced always.  And obviously, the big thematic profile
that still has a huge union-build despite all your efforts of splitting
your home profile neatly is the entirety of the NPM ecosystem :)


  reply	other threads:[~2022-05-05 18:06 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 10:50 Multiple profiles with Guix Home Liliana Marie Prikler
2021-10-04  7:17 ` zimoun
2021-10-04  8:11   ` Liliana Marie Prikler
2022-05-03 14:13 ` Andrew Tropin
2022-05-03 18:34   ` Liliana Marie Prikler
2022-05-03 19:13     ` Maxime Devos
2022-05-03 20:04       ` Liliana Marie Prikler
2022-05-03 20:39         ` Maxime Devos
2022-05-03 20:44         ` Maxime Devos
2022-05-04  9:25           ` Maxime Devos
2022-05-03 20:59         ` Maxime Devos
2022-05-04  4:16           ` Liliana Marie Prikler
2022-05-04  7:01             ` Maxime Devos
2022-05-04  7:08               ` Maxime Devos
2022-05-04 13:15               ` Reza Housseini
2022-05-04 13:46                 ` Maxime Devos
2022-05-04 18:14                   ` zimoun
2022-05-04 18:21                     ` Maxime Devos
2022-05-05  8:01                 ` Andrew Tropin
2022-05-04 18:38               ` Liliana Marie Prikler
2022-05-04 20:41                 ` Maxime Devos
2022-05-05  4:25                   ` Liliana Marie Prikler
2022-05-05 10:53                     ` Maxime Devos
2022-05-05 16:24                       ` Liliana Marie Prikler
2022-05-05 16:33                         ` Maxime Devos
2022-05-05 17:21                           ` Liliana Marie Prikler
2022-05-05 17:29                             ` Maxime Devos
2022-05-05 11:03                     ` Maxime Devos
2022-05-05 16:31                       ` Liliana Marie Prikler
2022-05-05 16:42                         ` Maxime Devos
2022-05-05 17:12                           ` Maxime Devos
2022-05-05 17:27                           ` Liliana Marie Prikler
2022-05-05 17:41                             ` Maxime Devos
2022-05-05 19:17                               ` Liliana Marie Prikler
2022-05-05 19:42                                 ` Maxime Devos
2022-05-05 20:20                                   ` Liliana Marie Prikler
2022-05-05 18:00                             ` Maxime Devos
2022-05-05 19:08                               ` Liliana Marie Prikler
2022-05-05 19:44                                 ` Maxime Devos
2022-05-05 23:53                                   ` zimoun
2022-05-05 20:13                                 ` Maxime Devos
2022-05-05 20:53                                   ` Liliana Marie Prikler
2022-05-05 21:28                                     ` Maxime Devos
2022-05-06  4:19                                       ` Liliana Marie Prikler
2022-05-07 23:06                                         ` Ludovic Courtès
2022-05-05 20:50                                 ` zimoun
2022-05-05 18:25                         ` zimoun
2022-05-03 21:11         ` Maxime Devos
2022-05-04  4:23           ` Liliana Marie Prikler
2022-05-04  6:57             ` Maxime Devos
2022-05-04  9:24             ` Maxime Devos
2022-05-04 13:05     ` Andrew Tropin
2022-05-05 11:05 ` Maxime Devos
2022-05-05 16:22   ` Liliana Marie Prikler
2022-05-05 17:07     ` Maxime Devos
2022-05-05 17:19       ` Liliana Marie Prikler [this message]
2022-05-05 17:29         ` Maxime Devos
2022-05-05 18:24           ` Liliana Marie Prikler
2022-05-05 20:14             ` Maxime Devos
2022-05-05 20:27               ` Liliana Marie Prikler
2022-05-05 20:38                 ` Maxime Devos
2022-05-05 20:41                 ` Maxime Devos
2022-05-05 20:26             ` Maxime Devos
2022-05-06 18:40               ` Liliana Marie Prikler
2022-05-06 19:54                 ` Maxime Devos
2022-05-06 21:32                   ` Liliana Marie Prikler
2022-05-07  7:17                     ` Maxime Devos
2022-05-23 13:14 ` Andrew Tropin
2022-05-23 17:05   ` Liliana Marie Prikler
2022-05-24 11:55     ` Andrew Tropin
2022-05-24 18:31       ` Liliana Marie Prikler
2022-05-25 11:01         ` Andrew Tropin
2022-05-25 23:36           ` Liliana Marie Prikler
2022-05-27 12:52             ` andrew
2022-05-27 13:14               ` Liliana Marie Prikler
  -- strict thread matches above, loose matches on Subject: below --
2021-10-03 20:51 John Kehayias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a2c21097b9acb5acacd8bd4f79d61478a3ee047b.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=maximedevos@telenet.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).