From 76a2b9d70778918f4cfd0c07592d82fd176b3603 Mon Sep 17 00:00:00 2001 From: Tomas Volf <~@wolfsden.cz> Date: Thu, 9 May 2024 01:13:24 +0200 Subject: services: guix: Default `channels' field to #f. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the absence of the /etc/guix/channels.scm file, %default-channels is used anyway. If user manually (or by extra-special-file) created the file, we should respect it. This commit therefore changes the default to #f, hopefully having zero impact on people not actively using the `channels' field. * gnu/services/base.scm ()[channels]: Set default to #f. Change-Id: I516c1735a037a153fabbebfc337051aaf0be2155 Signed-off-by: Ludovic Courtès --- doc/guix.texi | 2 +- gnu/services/base.scm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 500a462bfb..6770c9d664 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19679,7 +19679,7 @@ might want to turn it off for instance in a virtual machine that does not need it and where the extra boot time is a problem. @anchor{guix-configuration-channels} -@item @code{channels} (default: @code{%default-channels}) +@item @code{channels} (default: @code{#f}) List of channels to be specified in @file{/etc/guix/channels.scm}, which is what @command{guix pull} uses by default (@pxref{Invoking guix pull}). diff --git a/gnu/services/base.scm b/gnu/services/base.scm index c7a14c7ed4..4b5b103cc3 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1859,7 +1859,7 @@ archive' public keys, with GUIX." (generate-substitute-key? guix-configuration-generate-substitute-key? (default #t)) ;Boolean (channels guix-configuration-channels ;file-like - (default %default-channels)) + (default #f)) (chroot-directories guix-configuration-chroot-directories ;list of file-like/strings (default '())) (max-silent-time guix-configuration-max-silent-time ;integer -- cgit v1.2.3