From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raghav Gururajan" Subject: Re: Collect guix profiles in single directory. Date: Wed, 08 Jan 2020 11:44:24 +0000 Message-ID: <13f0e30551c27859ef5ee7333a4657e3@disroot.org> References: <87blrefavb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35618) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip9lF-0003KN-Dk for guix-devel@gnu.org; Wed, 08 Jan 2020 06:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip9lE-0002rd-AD for guix-devel@gnu.org; Wed, 08 Jan 2020 06:44:29 -0500 In-Reply-To: <87blrefavb.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= , Leo Prikler Cc: guix-devel@gnu.org Hello Ludo!=0A=0A> To me, the most important aspect of your proposal is h= aving all profiles=0A> in one place (Konrad proposed something similar re= cently, well, =E2=80=9Clast=0A> year.=E2=80=9D :-))=0A> =0A> Like I wrote= then, =E2=80=98guix package --list-profiles=E2=80=99 was an attempt at= =0A> making it easier to locate profiles, even if they=E2=80=99re not in = the same=0A> directory, so that you can easily operate on them. What Konr= ad noted is=0A> that this returns all the profiles, including=0A> ~/.conf= ig/guix/current-kind of profiles, which may be inconvenient.=0A> =0A> I= =E2=80=99m generally wary of enforcing arbitrary conventions, such as a= =0A> specific directory to store all profiles, but at the same time I agr= ee=0A> that this can be convenient, so I=E2=80=99m a bit split!=0A> =0A> = Also, such a change would need a transition plan: what does =E2=80=98-p= =E2=80=99 become, etc.=0A> =0A> Thoughts?=0A=0AI just subscribed to guix-= devel and happen to see this email.=0A=0AI had similar thoughts before, t= hat is putting all profiles under single directory.=0A=0AI was conceptual= izing this:=0A=0AThe way we track or mark a particular generations as cur= rent generations, I think we can apply same concept to profiles. For exam= ple, instead of having 'default-profile' in one directory and others in '= extra-profile' directories; all profiles will be put under one directory.= There will be first initial profile '0' created automatically for each u= ser; just like how system generation '0' is created. Then, a user can cre= ate as many profiles as they want. It will be tracked as 1, 2, 3 and so o= n. But here we can a tag something like 'default'. similar to 'current' t= ag for generations. User can change which profile to be default through `= --change-default'; just like '--switch-generation'.