From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: Better support for single-user systems Date: Mon, 03 Dec 2018 10:50:07 +0100 Message-ID: <878t17djn4.fsf@lassieur.org> References: <87in0cghoo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTkro-00050d-Cf for guix-devel@gnu.org; Mon, 03 Dec 2018 04:50:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTkrl-0000xl-81 for guix-devel@gnu.org; Mon, 03 Dec 2018 04:50:16 -0500 Received: from mail.lassieur.org ([83.152.10.219]:55314) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gTkrk-0000sG-Me for guix-devel@gnu.org; Mon, 03 Dec 2018 04:50:13 -0500 In-reply-to: <87in0cghoo.fsf@gmail.com> 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.org@gnu.org Sender: "Guix-devel" To: Taylan Kammer Cc: guix-devel@gnu.org Hi Taylan, You don't need to use the root account at all.=20 Taylan Kammer writes: > Most desktop users have single unix account and are also in control of > root. These users might not want to differentiate between the current > guix version of root and their normal user. They might also not want > to differentiate between the packages available to root and the normal > user. As such I would propose the following two improvements: > > - Allow a system-wide guix installation that's updated with a special > variant of 'guix pull' executed by root You can use you current user's guix installation for all commands that need root's permissions with 'sudo -E', so you can consider that your current user's guix account is the system-wide guix account. For example, 'sudo -E guix system reconfigure config.scm' updates the system with your user's guix. > - Allow direct addition of packages to the system profile to obviate > the need of running a full 'guix system reconfigure' after adding > packages to the system configuration You don't need this if you use your user's guix installation only. > (The latter might show a reminder that if the package isn't also added > to the system config, it will be removed again on the next system > reconfiguration.) > > Currently I use a hack to imitate #1 where I have a unix account > called 'guix-user' with which I run 'guix pull', and both root and my > normal user have symlinks to that user's current guix. For #2 I don't > have a workaround; I just re-run 'guix system reconfigure' every time. You definitely don't need this :-) Cl=C3=A9ment