[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: services: base: Add extra-env support to guix-configuration.
From: |
guix-commits |
Subject: |
01/09: services: base: Add extra-env support to guix-configuration. |
Date: |
Sat, 7 Jan 2023 14:12:12 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 78a9b4f996ba18b4460ba380b87e9538007c27e0
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sat Jan 7 19:12:30 2023 +0100
services: base: Add extra-env support to guix-configuration.
* gnu/services/base.scm (<guix-configuration>)[extra-env]: New field.
(guix-shepherd-service): Honor it.
* doc/guix.texi (Base Services): Document it.
---
doc/guix.texi | 4 ++++
gnu/services/base.scm | 10 +++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 293c3016aa..e337945ba7 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -18482,6 +18482,10 @@ herd set-http-proxy guix-daemon
@item @code{tmpdir} (default: @code{#f})
A directory path where the @command{guix-daemon} will perform builds.
+@item @code{extra-env} (default: @code{'()})
+Environment variables to be set before starting the daemon, as a list of
+@code{key=value} strings.
+
@end table
@end deftp
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 6993e1f174..0b387ee0f5 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -198,6 +198,7 @@
guix-configuration-generate-substitute-key?
guix-configuration-extra-options
guix-configuration-log-file
+ guix-configuration-extra-env
guix-extension
guix-extension?
@@ -1654,7 +1655,9 @@ archive' public keys, with GUIX."
(http-proxy guix-http-proxy ;string | #f
(default #f))
(tmpdir guix-tmpdir ;string | #f
- (default #f)))
+ (default #f))
+ (extra-env guix-configuration-extra-env ;list of strings
+ (default '())))
(define %default-guix-configuration
(guix-configuration))
@@ -1710,7 +1713,7 @@ proxy of 'guix-daemon'...~%")
(guix build-group build-accounts authorize-key? authorized-keys
use-substitutes? substitute-urls max-silent-time timeout
log-compression discover? extra-options log-file
- http-proxy tmpdir chroot-directories)
+ http-proxy tmpdir chroot-directories extra-env)
(list (shepherd-service
(documentation "Run the Guix daemon.")
(provision '(guix-daemon))
@@ -1799,7 +1802,8 @@ proxy of 'guix-daemon'...~%")
(if proxy
(list (string-append "http_proxy=" proxy)
(string-append "https_proxy=" proxy))
- '()))
+ '())
+ '#$extra-env)
#:log-file #$log-file))))
(stop #~(make-kill-destructor))))))
- branch master updated (db746d1660 -> 1b7e3196e4), guix-commits, 2023/01/07
- 03/09: gnu: slock: Update to 1.5., guix-commits, 2023/01/07
- 06/09: gnu: strawberry: Update to 1.0.12., guix-commits, 2023/01/07
- 04/09: gnu: sfeed: Update to 1.6., guix-commits, 2023/01/07
- 07/09: gnu: doctl: Update to 1.92.0., guix-commits, 2023/01/07
- 08/09: gnu: tippecanoe: Update to 2.17.0., guix-commits, 2023/01/07
- 02/09: gnu: guile-udev: Update to 0.2.4., guix-commits, 2023/01/07
- 01/09: services: base: Add extra-env support to guix-configuration.,
guix-commits <=
- 09/09: gnu: lttng-tools: Update to 2.13.9., guix-commits, 2023/01/07
- 05/09: gnu: strawberry: Use qt6 instead of qt5., guix-commits, 2023/01/07