guix-commits
[Top][All Lists]
Advanced

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

branch master updated: hydra: Add four machines to the Bordeaux build fa


From: Andreas Enge
Subject: branch master updated: hydra: Add four machines to the Bordeaux build farm.
Date: Fri, 28 Jun 2024 09:18:04 -0400

This is an automated email from the git hooks/post-receive script.

andreas pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new 609e2be0 hydra: Add four machines to the Bordeaux build farm.
609e2be0 is described below

commit 609e2be0268709704abb99b6748c7fd987410b2b
Author: Andreas Enge <andreas@enge.fr>
AuthorDate: Fri Jun 28 15:16:54 2024 +0200

    hydra: Add four machines to the Bordeaux build farm.
    
    * hydra/thinkpad.scm, hydra/kranji.scm, hydra/marsiling.scm,
    hydra/yishun.scm, hydra/tampines.scm: New files.
---
 hydra/kranji.scm    |  4 +++
 hydra/marsiling.scm |  4 +++
 hydra/tampines.scm  |  4 +++
 hydra/thinkpad.scm  | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hydra/yishun.scm    |  4 +++
 5 files changed, 105 insertions(+)

diff --git a/hydra/kranji.scm b/hydra/kranji.scm
new file mode 100644
index 00000000..b5f42494
--- /dev/null
+++ b/hydra/kranji.scm
@@ -0,0 +1,4 @@
+(use-modules (thinkpad))
+
+(thinkpad-os "kranji")
+
diff --git a/hydra/marsiling.scm b/hydra/marsiling.scm
new file mode 100644
index 00000000..23fe4916
--- /dev/null
+++ b/hydra/marsiling.scm
@@ -0,0 +1,4 @@
+(use-modules (thinkpad))
+
+(thinkpad-os "marsiling")
+
diff --git a/hydra/tampines.scm b/hydra/tampines.scm
new file mode 100644
index 00000000..dddc560b
--- /dev/null
+++ b/hydra/tampines.scm
@@ -0,0 +1,4 @@
+(use-modules (thinkpad))
+
+(thinkpad-os "tampines")
+
diff --git a/hydra/thinkpad.scm b/hydra/thinkpad.scm
new file mode 100644
index 00000000..3c1eefb1
--- /dev/null
+++ b/hydra/thinkpad.scm
@@ -0,0 +1,89 @@
+(define-module (thinkpad)
+  #:use-module (gnu)
+  #:use-module (gnu services desktop)
+  #:use-module (gnu services guix)
+  #:use-module (gnu services mcron)
+  #:use-module (gnu services networking)
+  #:use-module (gnu services ssh)
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages vim)
+  #:export (thinkpad-os))
+
+(define (thinkpad-os name)
+  (operating-system
+    (locale "en_US.utf8")
+    (timezone "Europe/Paris")
+    (keyboard-layout (keyboard-layout "us"))
+    (host-name name)
+
+    (users (cons* (user-account
+                    (name "andreas")
+                    (comment "Andreas")
+                    (group "users")
+                    (home-directory "/home/andreas")
+                    (supplementary-groups '("wheel" "netdev" "audio" "video")))
+                  %base-user-accounts))
+
+    (packages (append (list upower vim)
+                      %base-packages))
+
+    (bootloader (bootloader-configuration
+                  (bootloader grub-efi-bootloader)
+                  (targets (list "/boot/efi"))
+                  (keyboard-layout keyboard-layout)))
+
+    (swap-devices (list (swap-space
+                          (target "/dev/nvme0n1p2"))))
+
+    (file-systems (cons* (file-system
+                           (mount-point "/boot/efi")
+                           (device "/dev/nvme0n1p1")
+                           (type "vfat"))
+                         (file-system
+                           (mount-point "/")
+                           (device "/dev/nvme0n1p3")
+                           (type "ext4"))
+                         %base-file-systems))
+
+    (services
+      (append
+        (modify-services %base-services
+          (guix-service-type config =>
+            (guix-configuration
+              (substitute-urls '("https://bordeaux.guix.gnu.org";))
+              (authorized-keys
+                (list
+                  (local-file "keys/guix/bordeaux.guix.gnu.org-export.pub")
+                  (local-file "keys/guix/data.guix.gnu.org.pub")
+                  (local-file "keys/guix/data.qa.guix.gnu.org.pub")))
+              (max-silent-time (* 24 3600))
+              (timeout (* 48 3600)))))
+        (list
+          (service dhcp-client-service-type)
+          (service upower-service-type)
+          (service openssh-service-type
+            (openssh-configuration
+              (permit-root-login 'prohibit-password)
+              (authorized-keys
+                `(("andreas" ,(local-file "keys/ssh/andreas.pub"))
+                  ("root" ,(local-file "keys/ssh/andreas.pub"))))))
+          (service mcron-service-type
+            (mcron-configuration
+              (jobs (list #~(job '(next-hour '(3)) "guix gc -F 150G")))))
+          (service guix-build-coordinator-agent-service-type
+            (guix-build-coordinator-agent-configuration
+              (coordinator "https://coordinator.bayfront.guix.gnu.org";)
+              (authentication
+                (guix-build-coordinator-agent-dynamic-auth-with-file
+                  (agent-name name)
+                  (token-file
+                    
"/etc/guix-build-coordinator/guix-build-coordinator-agent-token")))
+              (derivation-substitute-urls
+                '("https://data.guix.gnu.org"; "https://data.qa.guix.gnu.org";))
+              (non-derivation-substitute-urls
+                '("https://bordeaux.guix.gnu.org";))
+              (systems '("x86_64-linux" "i686-linux"))
+              (max-parallel-builds 8)
+              (max-parallel-uploads 2)
+              (max-1min-load-average 8))))))))
+
diff --git a/hydra/yishun.scm b/hydra/yishun.scm
new file mode 100644
index 00000000..46f28b8b
--- /dev/null
+++ b/hydra/yishun.scm
@@ -0,0 +1,4 @@
+(use-modules (thinkpad))
+
+(thinkpad-os "yishun")
+



reply via email to

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