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: Hilton Chain
Subject: Re: Not sure how to add an offload server
Date: Thu, 07 Nov 2024 17:06:45 +0800

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]