unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: "Pierre Neidhardt" <mail@ambrevar.xyz>, "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [ SPAM? ] Re: Collect guix profiles in single directory.
Date: Thu, 30 Jan 2020 21:08:02 +0100	[thread overview]
Message-ID: <97bd40c8513d323e11e63e1083a8bf6c33940840.camel@student.tugraz.at> (raw)
In-Reply-To: <87wo98pwup.fsf@ambrevar.xyz>

Am Donnerstag, den 30.01.2020, 20:28 +0100 schrieb Pierre Neidhardt:
> Proposal:
> 
> - Modify /etc/profile in Guix System to load everything in
> GUIX_PROFILE_DIR if
>   set.  If not set, fall back on ~/.guix-profile.
Sounds good, but you're missing ordering.  Specifically, if
GUIX_PROFILE_DIR is set, I'd want $GUIX_PROFILE_DIR/channels to contain
the channels, that currently live in ~/.config/guix/current, and this
profile's /etc/profile has to be sourced last if we want to have full
backwards compatibility.
By the way, how much would it bite us, if we don't enforce an ordering
here?  Would reverse alphabetical order suffice, so that channels are
at least always sourced after default and the user has to take care of
the rest?

> - When GUIX_PROFILE_DIR is set, use GUIX_PROFILE_DIR/default as the
>   fault.  Otherwise fall back to ~/.guix-profile if GUIX_PROFILE_DIR
> is
>   unset for backward compatibility.
s/fault/default/
Also:
- When GUIX_PROFILE_DIR is set, use GUIX_PROFILE_DIR/channels in `guix
pull', falling back to ~/.config/guix/current.
- When GUIX_PROFILE_DIR is set, read channels from
$GUIX_PROFILE_DIR/channels.scm, falling back to
~/.config/guix/channels.scm.
> - Add a "-P,--profile-name NAME" command line option that
> automatically derives
>   the profile path as $GUIX_PROFILE_DIR/$NAME.  This would make it
> easy
>   to deal with frequently-used profiles from command line, e.g.
> 
>   guix install -P my-gimpy-profile gimp
Could we also make this accept absolute and relative paths (the latter
prefixed with ./) to deprecate `guix environment -r'?

> In the end, all the user needs to do to start using multiple profiles
> in
> a convenient manner is to export GUIX_PROFILE_DIR.
> 
> I believe the above is fully backward compatible.  If there is no
> objection we can start working on a patch :)
Sounds good to me.

  reply	other threads:[~2020-01-30 20:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-23 10:59 Collect guix profiles in single directory Leo Prikler
2020-01-06 18:55 ` zimoun
2020-01-06 20:07   ` Alex Griffin
2020-01-06 22:52     ` zimoun
2020-01-07 13:02   ` Leo Prikler
2020-01-06 19:41 ` Pierre Neidhardt
2020-01-08 11:25 ` Ludovic Courtès
2020-01-08 13:48   ` Leo Prikler
2020-01-08 14:16     ` Pierre Neidhardt
2020-01-30 19:28       ` Pierre Neidhardt
2020-01-30 20:08         ` Leo Prikler [this message]
2020-01-31  7:59           ` [ SPAM? ] " Pierre Neidhardt
2020-01-31  8:46             ` zimoun
2020-01-31  9:29               ` Leo Prikler
2020-01-31 12:04                 ` Pierre Neidhardt
2020-01-31 12:56                   ` Leo Prikler
2020-01-31 13:36                     ` Pierre Neidhardt
2020-01-31 11:06               ` [ SPAM? ] " Pierre Neidhardt
2020-01-31  9:18             ` Leo Prikler
2020-01-31 13:33               ` Pierre Neidhardt
2020-01-31 14:34                 ` Leo Prikler
2020-01-31 15:17                   ` Pierre Neidhardt
2020-01-31 15:38                     ` Leo Prikler
2020-01-31 15:52                       ` Pierre Neidhardt
2020-01-08 11:44 ` Raghav Gururajan

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=97bd40c8513d323e11e63e1083a8bf6c33940840.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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).