From mboxrd@z Thu Jan 1 00:00:00 1970 From: Divan Santana Subject: Re: Some general guix questions Date: Wed, 09 Jan 2019 09:51:24 +0200 Message-ID: <87ftu2z2tf.fsf@santanas.co.za> References: <87o98ryuat.fsf@santanas.co.za> <87muob5az4.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh8tk-0005Wj-7Q for help-guix@gnu.org; Wed, 09 Jan 2019 03:07:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh8tj-0005m2-AF for help-guix@gnu.org; Wed, 09 Jan 2019 03:07:36 -0500 Received: from outmail149078.authsmtp.net ([62.13.149.78]:29309) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gh8ti-0005gc-Vd for help-guix@gnu.org; Wed, 09 Jan 2019 03:07:35 -0500 Received: from punt15.authsmtp.com (punt15.authsmtp.com [62.13.128.229]) by punt24.authsmtp.com. (8.15.2/8.15.2) with ESMTP id x097pSDn023225 for ; Wed, 9 Jan 2019 07:51:28 GMT (envelope-from divan@santanas.co.za) In-reply-to: <87muob5az4.fsf@ambrevar.xyz> 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 Pierre Neidhardt writes: > 1. System-wide installation means packages are readily available to all users, > which can be nice, but users then don't have the freedom to remove them. > For maximal flexibility, it's often best to leave system-wide packages to the > bare minimum and let users choose what they want. > > If you are preparing a distribution for an organization, requirements could > be different. Your mileage may vary. > > 2. I also combine emacs-guix and helm-system-packages a lot ;) > My personal take at this issue is to generate the manifest from all installed > packages with the following shell script: > > --8<---------------cut here---------------start------------->8--- > cat<"$PKG_ROOT/guix" > (specifications->manifest > '( > EOF > > guix package -I | awk '{printf("\"%s", $1); if($3!="out") {printf("%s", ":" $3)}; print "\""}' | LC_ALL=C sort >>"$PKG_ROOT/guix" > echo "))" >>"$PKG_ROOT/guix" > --8<---------------cut here---------------end--------------->8--- > > There might be better ways to do this. Brilliant. Thanks Pierre.