From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 08:34:43 2020 Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 12:34:43 +0000 Received: from localhost ([127.0.0.1]:34556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxnH-0003xC-LZ for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:34:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:43514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxnG-0003x4-BG for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:34:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNxnG-0000v0-4L for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53720) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNxnF-0000tS-RA for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:41 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38002 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNxnE-0002h3-AF for bug-guix@gnu.org; Thu, 01 Oct 2020 08:34:40 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: guix-install.sh should do more first-time setup X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Oct 2020 14:34:37 +0200 Message-ID: <87362yt99e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! One of the things we can do to provide a better first-time experience on a foreign distro is to automatically do some of the things that make Guix readily usable and convenient, even for someone who skips the =E2=80=9CApplication Setup=E2=80=9D section of the manual. Things that com= e to mind: 1. Installing Bash and Zsh completion files globally (actually making them a symlink to /var/guix/profiles/per-user/root/current-guix/etc/=E2=80=A6). There seems to be +/- a cross-distro conventional directory to collect those, for example /etc/bash_completion.d, no? The script could create that symlink, perhaps asking the user to confirm. 2. Adding the following lines to /etc/profile (taken from Guix System): --8<---------------cut here---------------start------------->8--- # Arrange so that ~/.config/guix/current comes first. for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" do if [ -f "$profile/etc/profile" ] then # Load the user profile's settings. GUIX_PROFILE=3D"$profile" ; \ . "$profile/etc/profile" else # At least define this one so that basic things just work # when the user installs their first package. export PATH=3D"$profile/bin:$PATH" fi done --8<---------------cut here---------------end--------------->8--- The user should be explicitly asked whether they want this change to be made. 3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd u= sing the host distro package manager if needed, or at least suggest doing it. Any takers? :-) Thanks, Ludo=E2=80=99.