From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aMkbF9gJQGG1EAAAgWs5BA (envelope-from ) for ; Tue, 14 Sep 2021 04:32:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MI/dEtgJQGEnXQAA1q6Kng (envelope-from ) for ; Tue, 14 Sep 2021 02:32:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EADB7C126 for ; Tue, 14 Sep 2021 04:32:55 +0200 (CEST) Received: from localhost ([::1]:38174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPyFi-00030F-UW for larch@yhetil.org; Mon, 13 Sep 2021 22:32:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPyFM-000306-LM for guix-devel@gnu.org; Mon, 13 Sep 2021 22:32:32 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:47764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPyFK-0005mA-BN for guix-devel@gnu.org; Mon, 13 Sep 2021 22:32:32 -0400 Date: Tue, 14 Sep 2021 02:32:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631586738; bh=NVupqcCMN9az8KlpTmgRaBKTd5Y0w7cEPvbSsGzJlcg=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=JEn4Q7tBX7wAaetrTxV4EmYPkIIXtEWhof7O4JLUjzP3UmocGaKi5+rGlQjeZ0ZMb qxTbzG+jCkVCdLIn6l40RfBbEhuP2+3PuLRi3pfko/ngNIgZnYqi2EFAGt4hYzfVS9 XSkxS7dv/BrqCK2nuhIu8vxZAVm2Z4+ot3IkblMI= To: pinoaffe From: Ryan Prior Cc: guix-devel@gnu.org Subject: Re: Named environments Message-ID: <4WH_uctsaulZjYrHDmNui178VC8g56-Vt_oSIsY2FvInhC07RDKAQTEv4A4Ghlh8FTNaZLJY1gDzTdzcH_DmbHL_sAxC9DEFP-co6u0ISEY=@protonmail.com> In-Reply-To: <87wnnka338.fsf@airmail.cc> References: <87wnnka338.fsf@airmail.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=51.77.79.158; envelope-from=rprior@protonmail.com; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631586776; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NVupqcCMN9az8KlpTmgRaBKTd5Y0w7cEPvbSsGzJlcg=; b=ToezLci80lRdS+4F1yCWuLixjKP3n+HwhUJCmnfq5d0KA3AhraX/yRu0LX2FEFICumHZ2Y wpqPbzHIeRdRIpnUXOu2IEDLYTfZs8YfnzTp8z81L0oSz8cTs6wYEOtA/C1IXnaZoD6/5K Q8+vxopQgSl+I/XbLksobVpMKtix7ctN++MHd+iAeJ7RJNzQ/a4TXc9lLrKkSKYd2Nzm2v y6X08WUayGJKjgdIHaBgYS9PJyt8J1qBKjV0V4L5y/RL2hgAjSHNQayAPNduJlGtiZB/FS 6j4tS/sIkBetq2/PtUIOhVy+U2q62+LJLScnZvPFe7AgLNGtaLDMQv93fDV4bw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631586776; a=rsa-sha256; cv=none; b=G0mqbtv5ZsBzZHMmtSNlnrhiQzsxOvUGWz4a9fFBqf06x+m3OhcEYWwiX32n6jly6rEpcg xHU12AWbfcfXOXUKzvgzqRZc/t0uqaUs/+IW5AcL6nbC1cAzJkmEVu4aWob3qaLm6qIIDm 9wG/tXyIwsm2CWzvFgTxG64MyuOczUIOwVvnF97b+vSMyAxvxR1dPkEMBfCC/TA06xC4Cs eRmsWYksVM/znbImbZSH/ceGeftl0qyLT0O35F290VAO7/AXh6e2fDbVPw9f9t6RSu3ht6 dsNlmyVa1M9FC6gcI/SR2X6l9mpLLSnBc0e8oajMOXeW4r2ufM5cgzbA7TNwGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=JEn4Q7tB; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=JEn4Q7tB; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: EADB7C126 X-Spam-Score: -1.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: LyON/cRBrXv4 On Monday, September 13th, 2021 at 3:48 PM, pinoaffe = 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 i= n a certain directory with a script (etc/profile) & structure to allow an e= nd-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 "gu= ix 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 som= e registry of names which I can easily query to refer to a specific environ= ment. 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 ba= sed on manifests. I know you can export & import profiles, but the API to u= pdate profiles is basically imperative. Beyond that, it doesn't seem like y= ou 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 conc= ept going, as well as an imperative API for updating manifests (as Sarah Mo= rgensen proposed IIRC with her "guix env --edit" command) - Profiles don't seem to have certain desirable features that Guix environm= ents do, such as pure execution, containerization with or without access to= network or certain parts of the filesystem, etc. Maybe my understanding he= re is superficial and you can actually do this with profiles after all?