[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running guix on nixos

From: Leo Famulari
Subject: Re: Running guix on nixos
Date: Mon, 25 Jan 2016 16:00:52 -0500
User-agent: Mutt/1.5.24 (2015-08-30)

On Mon, Jan 25, 2016 at 11:29:36AM -0800, Jeff Mickey wrote:
> * Ludovic Courtès <address@hidden> [2016-01-25 00:06]:
> > Logs are automatically kept in /var/guix or /nix/var/something (see
> > ‘guix build --log-file’), so it may still be possible to retrieve them.
> Hm, that command returns empty, and I don't see any logs anywhere. I
> wasn't deing detailed enough while working on this, I apologize for
> missing the opportunity to debug it.

It will return nothing unless you give it a package as an argument:
$ guix build --log-file hello

If the package was built remotely then it will return a path to the
remote log.
$ guix build --log-file webkitgtk

> >> Unfortunately, there is something wrong with how it uses acl, as it
> >> warns me every time and then re-builds the world.
> >
> > What’s the warning?  That /etc/guix/acl is empty?
> It says:
> substitute: guix substitute: warning: ACL for archive imports seems to be 
> uninitialized, substitutes may be unavailable
> 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.
> 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=en_US.UTF-8
> PATH=/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.
> 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.
> Thanks again for your help! And I have got to brush up on my
> Esperanto. (Redankon? Dankon ree? Dankon denove? Cxu "cimo"?)
>   //  codemac

reply via email to

[Prev in Thread] Current Thread [Next in Thread]