From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: [Blog/Cookbook?] On multiple Guix profiles and manifests Date: Fri, 11 Oct 2019 10:23:10 +0200 Message-ID: <87a7a7u1w1.fsf@gnu.org> References: <87y2xzihqs.fsf@ambrevar.xyz> 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]:42667) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIqCh-0005aA-U1 for help-guix@gnu.org; Fri, 11 Oct 2019 04:23:17 -0400 In-Reply-To: <87y2xzihqs.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sat, 05 Oct 2019 12:55:39 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: help-guix@gnu.org, guix-blog@gnu.org Hi Pierre, Pierre Neidhardt skribis: > So what about writing a blog article / cookbook chapter to explain why > profiles and manifests are truly awesome indeed? (Unless this has > already been done and I missed it?) Go for it! :-) Seriously, I=E2=80=99ve discussed profiles and all with several newcomers, = who hadn=E2=80=99t really discovered that facility initially, and the discussion obviously talks about how to use them, when to use them, and so on. So I think a section in the Cookbook would be very welcome! > We can create a manifest per profile and install them this way: > > guix package --manifest=3D/path/to/guix-dev-manifest.scm --profile=3D$= HOME/.guix-extra-profiles/dev/dev >=20=20=20 > Placing all your profiles in a single folder, with each profile getting i= ts own > subfolder is somewhat cleaner, plus it's obvious to "loop over profiles" = from > any programming language (e.g. a shell script) by > simply looping over the sub-directories of .guix-extra-profiles. > > Note that it's also possible to loop over the output of `guix package > --list-profiles` although you'll probably have to filter out > `~/.config/guix/current`. Yes, I was going to suggest =E2=80=98--list-profiles=E2=80=99. Hopefully t= hat makes a centralized ~/.guix-extra-profiles less necessary, but either way, it=E2=80= =99s good in the cookbook to have a discussion of the various ways you can do things and the various tradeoffs that ensue. Would you like to turn that into a section of the Cookbook? Note that it=E2=80=99s (still!) not on-line, but I=E2=80=99ll try to update= the berlin.scm configuration (in maintenance.git) so that it=E2=80=99s publishe= d, if nobody beats me at it. Thanks! Ludo=E2=80=99.