From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 21 13:34:29 2020 Received: (at 43744-done) by debbugs.gnu.org; 21 Oct 2020 17:34:29 +0000 Received: from localhost ([127.0.0.1]:50482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVI0K-0001pI-Ni for submit@debbugs.gnu.org; Wed, 21 Oct 2020 13:34:28 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:37252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVI0I-0001p5-Vh for 43744-done@debbugs.gnu.org; Wed, 21 Oct 2020 13:34:27 -0400 Received: by mail-wr1-f43.google.com with SMTP id h7so4046792wre.4 for <43744-done@debbugs.gnu.org>; Wed, 21 Oct 2020 10:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=; b=fUKM2O8lHX5/ORSirRQjoYM+ngpjqpxOFkbLTTmhZYUUgNUSqCeM/Gp594X8dsMNXW iPSbfqnk0/8tjASdunzmi7XE7wOCdXNtra7X2nM30WjU+o2getvPcaen1E09BPn6z9vB ROYgywe/ggygjvcbKG0SgWdvzA0xhC7UlHzA15U5rLNzXo86uSpClh9te+CCsCF14bRz s2+hTRfh1m9qT0YxX5CEjALzo81cqZzlXmeN+iPeJTRu70PrvM7pRPhaju14ERuLHKTl EArxKnlqsNHkhdMX+pHlEaCURTyZw6cglHspVj/fINOMBdOW8hJ3ycfCxyo4xTnkA9tZ OCoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=; b=M7++naMzXI07FHTGoTWPsfEpkenZa3aUqql2R1KwvV0fEOZaacLYjDCr75mYfUeo3x hdcGIMBN91tlOR4YRBuU0pZnQgYEY1q4uxolGvd0p1jOKh9ft8bzIC3QwcptDCcnp7lJ WBr9gaoNLzEYVzqadFUf8wuALDiEpKjf9ax1WwkLqTBLP9VFLKJeHwu5ImY14blQtCWp s3fFMdNOgYtLZA4Gv+zPGcZd8Y+hl582GO6Q89tsTRIPfTD7OgyHhVSyVAhynalyFLHo p2pWrnlUauQrfq8wajfc5Ae2Z+m9+JZWTGkMgiWr43UKjntSH0kiFa5sed00A36fVVFm Pa4A== X-Gm-Message-State: AOAM530i17yKyTSj8u9OrT8Pcc4UiLyvD08z63NQCPj33KuDXGSk+zmB 7TeLVdj/2XpiDgTxxV4/uJHbWWH7sjI= X-Google-Smtp-Source: ABdhPJwdOotzSTntfjZheFCTrSU6mLezAs9L278tKbbL/poAO4bCXP4DojAcSluWTfTrJM23aOXTIg== X-Received: by 2002:a5d:654e:: with SMTP id z14mr6074544wrv.361.1603301660920; Wed, 21 Oct 2020 10:34:20 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id x1sm4878286wrl.41.2020.10.21.10.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 10:34:20 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#43744: guix-install.sh should do more first-time setup References: <87362yt99e.fsf@gnu.org> Date: Wed, 21 Oct 2020 19:34:19 +0200 In-Reply-To: <87362yt99e.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 01 Oct 2020 14:34:37 +0200") Message-ID: <871rhrfppg.fsf@gmail.com> 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: 0.0 (/) X-Debbugs-Envelope-To: 43744-done Cc: 43744-done@debbugs.gnu.org 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: -1.0 (-) Dear, On Thu, 01 Oct 2020 at 14:34, Ludovic Court=C3=A8s wrote: > 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 c= ome 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. Done in b3fba5ef043b161d05a9fdc371a32d89e9b22ea1. > 2. Adding the following lines to /etc/profile (taken from Guix System): > > # 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 > > The user should be explicitly asked whether they want this change > to be made. Nothing to done. > 3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd= using the host > distro package manager if needed, or at least suggest doing it. Done in b2683a2bed424f58722c9c17c9582e3e2e19d9a3. So closing!