From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Running guix on nixos Date: Tue, 26 Jan 2016 15:09:24 +0100 Message-ID: <87vb6gsa97.fsf@gnu.org> References: <87a8nzzzhr.fsf@nevada.int.iggy.bz> <874me79uf2.fsf@gnu.org> <87y4biy3ic.fsf@nevada.int.iggy.bz> <8760ylai1q.fsf@gnu.org> <87egd9xpbm.fsf@nevada.int.iggy.bz> <87h9i4uimh.fsf@gnu.org> <878u3ey6zo.fsf@nevada.int.iggy.bz> <8737tmnkvp.fsf@gnu.org> <8737tlxxsv.fsf@nevada.int.iggy.bz> 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]:40059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO4JF-0001QX-G3 for help-guix@gnu.org; Tue, 26 Jan 2016 09:09:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO4JC-0003Er-8P for help-guix@gnu.org; Tue, 26 Jan 2016 09:09:29 -0500 In-Reply-To: <8737tlxxsv.fsf@nevada.int.iggy.bz> (Jeff Mickey's message of "Mon, 25 Jan 2016 11:29:36 -0800") 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Jeff Mickey Cc: help-guix@gnu.org Jeff Mickey skribis: > And I got an idea while replying to your mail. NixOS sets the > NIX_CONF_DIR environment variable for users, and it looks like the guix > command respects it and places the acl file in /etc/nix/acl. Indeed. > The guix-daemon however is being launched from systemd, and it looks > like nix doesn't set up those same environment variables for services? > > $ sudo systemctl show-environment > LANG=3Den_US.UTF-8 > PATH=3D/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin > > Well, fek. > > guix-daemon defaults to using whatever guix was compiled with, and as > this is the binary installation method, so it was probably compiled with > /etc/guix. > > I apologize, an environmental mess up. > > It seems that running guix on top of NixOS has much more interesting > edge cases compared to my previous arch+guix and debian+guix installs > due to the overlap in functionality of the distros. Those others were a > breeze compared to this. Well, it seems that the main issue is that Guix honors the same environment variables as Nix, which causes confusion. We should probably fix it. > Is there anywhere I can document putting guix on NixOS from binary > installation? It'd be nice to have a per-distro "how to install guix" > instructions for each's corner case. I=E2=80=99d rather avoid per-distro sections. The =E2=80=9CApplication Set= up=E2=80=9D section is meant to contain all the hints for using Guix on a =E2=80=9Cforeign dist= ro=E2=80=9D, and those hints should be pretty much the same on all distros. So I think the problems you found with NixOS indicate that we must fix the environment variable collisions. =C4=9Coja kodado! :-) Ludo=E2=80=99.