guix-commits
[Top][All Lists]
Advanced

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

02/05: services: virtual-build-machine: Disable substitutes by default.


From: guix-commits
Subject: 02/05: services: virtual-build-machine: Disable substitutes by default.
Date: Wed, 6 Mar 2024 17:27:20 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 9e3061a163abcae5ccd3823ba3d8f757a0478e40
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Mar 6 11:14:17 2024 +0100

    services: virtual-build-machine: Disable substitutes by default.
    
    These are useless when offloading yet were causing problems on systems
    where the default substitute servers are unreachable.
    
    * gnu/services/virtualization.scm (%virtual-build-machine-operating-system):
    Add ‘use-substitutes?’ field to ‘guix-configuration’.
    
    Change-Id: I7d5e380a6f2e2d537de43fdb3c550958ed4db255
---
 gnu/services/virtualization.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 7b04ddb35e..fc5adb94d0 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -1220,10 +1220,13 @@ authpriv.*;auth.info                    /var/log/secure
                        ;; pre-initialized /etc/guix/acl file in the VM.  Thus,
                        ;; clear 'authorize-key?' so that it's not overridden
                        ;; at activation time.
+                       ;; Since it's used for offloading, disable substitutes
+                       ;; (this avoids network issues).
                        (guix-service-type config =>
                                           (guix-configuration
                                            (inherit config)
-                                           (authorize-key? #f)))
+                                           (authorize-key? #f)
+                                           (use-substitutes? #f)))
                        (syslog-service-type config =>
                                             (syslog-configuration
                                              (config-file



reply via email to

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