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: Tomas Volf
Subject: Re: Not sure how to add an offload server
Date: Thu, 07 Nov 2024 00:49:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Simen Endsjø <contact@simendsjo.me> writes:

> 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.

They should not fit together, /usr/local does not exist at all on my
GuixSD system.

> Could someone link me to a working offload setup?

These two blocks are all I need.

--8<---------------cut here---------------start------------->8---
(define %build-machines
  (list #~(build-machine
           (name "some-server")
           (systems (list "x86_64-linux" "i686-linux" "aarch64-linux"))
           (host-key "some-host-key")
           (user "build-offload")
           (parallel-builds 4)
           (overload-threshold #f)
           (private-key "/some/key"))))
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
              (simple-service 'offload guix-service-type
                              (guix-extension
                               (build-machines %build-machines)))
--8<---------------cut here---------------end--------------->8---

(Well, I also needed to authorized the keys using `guix archive', as the
manual instructs.  And create the `build-offload' user on the server
with allowed login by ssh key.)

T.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature


reply via email to

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