unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ryan Prior <rprior@protonmail.com>
To: pinoaffe <pinoaffe@airmail.cc>
Cc: guix-devel@gnu.org
Subject: Re: Named environments
Date: Tue, 14 Sep 2021 02:32:17 +0000	[thread overview]
Message-ID: <4WH_uctsaulZjYrHDmNui178VC8g56-Vt_oSIsY2FvInhC07RDKAQTEv4A4Ghlh8FTNaZLJY1gDzTdzcH_DmbHL_sAxC9DEFP-co6u0ISEY=@protonmail.com> (raw)
In-Reply-To: <87wnnka338.fsf@airmail.cc>

On Monday, September 13th, 2021 at 3:48 PM, pinoaffe <pinoaffe@airmail.cc> wrote:

> this sounds very similar to the features offered by profiles

Agreed, and maybe it's good to unify these things or be more explicit about how they're different?

What I see as the defining characteristic of a profile, is that it exists in a certain directory with a script (etc/profile) & structure to allow an end-user to activate it.

It lacks some things I associate with the concept of named environments:

- There is afaik no definitive list of profiles on your machine. I know "guix gc" knows somethings, but "gc --show-roots" doesn't give me useful info here. If I give names to "named environments" then that implies there's some registry of names which I can easily query to refer to a specific environment. This is important for integration with tools where you want to refer to a specific environment (profile?) by a shorthand name.

- I can easily update environments using my text editor, because they're based on manifests. I know you can export & import profiles, but the API to update profiles is basically imperative. Beyond that, it doesn't seem like you can check a profile into source control, but I'd very much like to check manifests for named environments into git to share them with people. Maybe this can just be bridged and we can get some kind of profiles-as-code concept going, as well as an imperative API for updating manifests (as Sarah Morgensen proposed IIRC with her "guix env --edit" command)

- Profiles don't seem to have certain desirable features that Guix environments do, such as pure execution, containerization with or without access to network or certain parts of the filesystem, etc. Maybe my understanding here is superficial and you can actually do this with profiles after all?


  reply	other threads:[~2021-09-14  2:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-10 23:06 Named environments Ryan Prior
2021-09-11  8:59 ` Domagoj Stolfa
2021-09-12 19:33 ` Sarah Morgensen
2021-09-13  8:08   ` zimoun
2021-10-06 13:29   ` Ludovic Courtès
2021-09-13 15:48 ` pinoaffe
2021-09-14  2:32   ` Ryan Prior [this message]
2021-09-14  6:27     ` Lars-Dominik Braun
2021-09-14  9:58       ` Pjotr Prins
2021-09-14  6:30     ` zimoun

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='4WH_uctsaulZjYrHDmNui178VC8g56-Vt_oSIsY2FvInhC07RDKAQTEv4A4Ghlh8FTNaZLJY1gDzTdzcH_DmbHL_sAxC9DEFP-co6u0ISEY=@protonmail.com' \
    --to=rprior@protonmail.com \
    --cc=guix-devel@gnu.org \
    --cc=pinoaffe@airmail.cc \
    /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).