From 9e3061a163abcae5ccd3823ba3d8f757a0478e40 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 6 Mar 2024 11:14:17 +0100 Subject: services: virtual-build-machine: Disable substitutes by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 -- cgit v1.2.3