help-guix
[Top][All Lists]
Advanced

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

Re: Not sure how to add an offload server


From: Simen Endsjø
Subject: Re: Not sure how to add an offload server
Date: Thu, 07 Nov 2024 12:17:02 +0100

My config doesn't show any trace of /usr/local:

    $ grep --context=3 \
            %sysconfdir \
            "$(dirname $(realpath 
/run/current-system/profile/bin/guix-daemon))/../share/guile/site/3.0/guix/config.scm"
    
                %storedir
                %localstatedir
                %sysconfdir
    
                %store-directory
                %state-directory
    --
    (define %localstatedir
      "/var")
    
    (define %sysconfdir
      "/etc")
    
    (define %store-directory
    --
    (define %config-directory
      ;; This must match `GUIX_CONFIGURATION_DIRECTORY' as defined in 
`nix/local.mk'.
      (or (getenv "GUIX_CONFIGURATION_DIRECTORY")
          (string-append %sysconfdir "/guix")))
    
    (define %system
      "x86_64-linux")

      
I'm unable to rebuild the system using this method as it looks like my channels
is not loaded, giving me
        no code for module (sijo packages foobar)


On Thu, Nov 7, 2024, at 10:06, Hilton Chain wrote:
> Hi Simen,
> 
> On Thu, 07 Nov 2024 16:03:46 +0800,
> Simen Endsjø wrote:
> >
> > Strange! I found out the error was passed by the offload server, so it was
> > complaining that it didn't trust my laptop! I added my laptop to authorized
> > keys on the server, and then it works! `guix archive --authorize` complains 
> > that
> > it should be set in the system configuration for Guix SD though, so I did 
> > that.
> >
> > But /usr/local is a mystery. I tried deleting it, but a reconfigure added 
> > back
> > /usr/local/guix/acl. And `guix offload` commands still uses (the now missing
> > file) /etc/local/guix/machines.scm by default.
> >
> > A difference between our configurations is that I'm modifying 
> > build-machines in
> > the original guix-configuration using modify-services. But that really 
> > shouldn't
> > make any difference, should it?
> 
> 
> What's the result of the following command?
> --8<---------------cut here---------------start------------->8---
> grep --context=3 \
> %sysconfdir \
> "$(dirname $(realpath 
> /run/current-system/profile/bin/guix-daemon))/../share/guile/site/3.0/guix/config.scm"
> --8<---------------cut here---------------end--------------->8---
> 
> 
> For me, it's:
> --8<---------------cut here---------------start------------->8---
> (define %localstatedir
>   "/var")
> 
> (define %sysconfdir
>   "/etc")
> --8<---------------cut here---------------end--------------->8---
> 
> 
> Can you build Guix from git[1], reconfigure your system with it[2], then run
> above command again to see if the result changes?
> 
> If it works, don't forget to move files in /usr/local to their new paths and
> restart guix-daemon.  Then try to pull once with the new 
> /run/current-system/profile/bin/guix.
> 
> 
> Thanks
> 
> [1]: https://guix.gnu.org/manual/devel/en/html_node/Building-from-Git.html
> [2]: 
> https://guix.gnu.org/manual/devel/en/html_node/Running-Guix-Before-It-Is-Installed.html
> 


reply via email to

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