I don't understand how /etc/guix and /usr/local/etc/guix fits together. /usr/local/etc/guix/acl does not contain the public key, but it exists and symlinks to a store item.
As guix offload looks at /usr/local/etc/guix/machines.scm, I manually added the machines.scm there, and `guix offload test /usr/local/etc/guix/machines.scm` fails with the missing public key. $ ls -lah /usr/local/etc/guix total 24K drwxr-xr-x 2 root root 4.0K Nov 6 22:02 ./ drwxr-xr-x 3 root root 4.0K May 1 2023 ../ lrwxrwxrwx 1 root root 47 Nov 6 22:02 acl -> /gnu/store/y0xvx5900zxj4s7rwyfr3baazkkhzkbw-acl -rw------- 1 root root 701 Nov 2 22:00 acl.bak -rw-r--r-- 1 root root 342 Nov 2 22:48 machines.scm -r--r--r-- 1 root root 118 Oct 23 2023 signing-key.pub -r-------- 1 root root 192 Oct 23 2023 signing-key.sec /etc/guix on the other hand has an acl which is not symlinked, but is using the machines.scm from my system. This acl contains the public key. But `guix offload test /etc/guix/machines.scm` also fails on the missing public key. $ sudo ls /etc/guix -lah total 24K dr-x--x--x 2 root root 4.0K Nov 6 22:02 . drwxr-xr-x 7 root root 4.0K Nov 6 22:02 .. -rw------- 1 root root 498 Jul 24 2023 acl -rw------- 1 root root 182 Jul 21 2023 acl.backup lrwxrwxrwx 1 root root 56 Jun 26 21:02 channels.scm -> /gnu/store/8nyjma3zafvhv4a31561n6ckhr9d3f90-channels.scm lrwxrwxrwx 1 root root 56 Nov 6 22:02 machines.scm -> /gnu/store/kj5lfjhxi81x7xp3nym3ssdyp2177waq-machines.scm -r--r--r-- 1 root root 118 Oct 14 2022 signing-key.pub -r-------- 1 root root 192 Oct 14 2022 signing-key.sec I really have no idea what is happening here, but I fail to see what I'm doing wrong. Could someone link me to a working offload setup? On Sun, Nov 3, 2024, at 16:05, Simen Endsjø wrote: > Both computers use Guix System. Nothing in my configuration tweaks anything > related to this. > > On Sun, Nov 3, 2024, at 15:06, Tomas Volf wrote: >> Simen Endsjø <cont...@simendsjo.me> writes: >> >> > Hi, I have some problems creating my own offload server. >> > >> > Adding a build-machine section in guix-configuration fills >> > /etc/guix/machines.scm. >> > >> > But when I do `guix offload test` or status, it checks >> > /usr/local/etc/guix/machines.scm and not /etc/guix/machinecs.scm. >> >> This seems weird. How did you install your Guix? >> >> T. >> >> -- >> There are only two hard things in Computer Science: >> cache invalidation, naming things and off-by-one errors. >> >> >> *Attachments:* >> • signature.asc