mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
services: base: Add environment 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.
This commit is contained in:
parent
de48bcee07
commit
8b314efd50
2 changed files with 11 additions and 3 deletions
|
@ -18482,6 +18482,10 @@ herd set-http-proxy guix-daemon
|
||||||
@item @code{tmpdir} (default: @code{#f})
|
@item @code{tmpdir} (default: @code{#f})
|
||||||
A directory path where the @command{guix-daemon} will perform builds.
|
A directory path where the @command{guix-daemon} will perform builds.
|
||||||
|
|
||||||
|
@item @code{environment} (default: @code{'()})
|
||||||
|
Environment variables to be set before starting the daemon, as a list of
|
||||||
|
@code{key=value} strings.
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
@end deftp
|
@end deftp
|
||||||
|
|
||||||
|
|
|
@ -198,6 +198,7 @@ (define-module (gnu services base)
|
||||||
guix-configuration-generate-substitute-key?
|
guix-configuration-generate-substitute-key?
|
||||||
guix-configuration-extra-options
|
guix-configuration-extra-options
|
||||||
guix-configuration-log-file
|
guix-configuration-log-file
|
||||||
|
guix-configuration-environment
|
||||||
|
|
||||||
guix-extension
|
guix-extension
|
||||||
guix-extension?
|
guix-extension?
|
||||||
|
@ -1654,7 +1655,9 @@ (define-record-type* <guix-configuration>
|
||||||
(http-proxy guix-http-proxy ;string | #f
|
(http-proxy guix-http-proxy ;string | #f
|
||||||
(default #f))
|
(default #f))
|
||||||
(tmpdir guix-tmpdir ;string | #f
|
(tmpdir guix-tmpdir ;string | #f
|
||||||
(default #f)))
|
(default #f))
|
||||||
|
(environment guix-configuration-environment ;list of strings
|
||||||
|
(default '())))
|
||||||
|
|
||||||
(define %default-guix-configuration
|
(define %default-guix-configuration
|
||||||
(guix-configuration))
|
(guix-configuration))
|
||||||
|
@ -1710,7 +1713,7 @@ (define (guix-shepherd-service config)
|
||||||
(guix build-group build-accounts authorize-key? authorized-keys
|
(guix build-group build-accounts authorize-key? authorized-keys
|
||||||
use-substitutes? substitute-urls max-silent-time timeout
|
use-substitutes? substitute-urls max-silent-time timeout
|
||||||
log-compression discover? extra-options log-file
|
log-compression discover? extra-options log-file
|
||||||
http-proxy tmpdir chroot-directories)
|
http-proxy tmpdir chroot-directories environment)
|
||||||
(list (shepherd-service
|
(list (shepherd-service
|
||||||
(documentation "Run the Guix daemon.")
|
(documentation "Run the Guix daemon.")
|
||||||
(provision '(guix-daemon))
|
(provision '(guix-daemon))
|
||||||
|
@ -1799,7 +1802,8 @@ (define discover?
|
||||||
(if proxy
|
(if proxy
|
||||||
(list (string-append "http_proxy=" proxy)
|
(list (string-append "http_proxy=" proxy)
|
||||||
(string-append "https_proxy=" proxy))
|
(string-append "https_proxy=" proxy))
|
||||||
'()))
|
'())
|
||||||
|
'#$environment)
|
||||||
|
|
||||||
#:log-file #$log-file))))
|
#:log-file #$log-file))))
|
||||||
(stop #~(make-kill-destructor))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
Loading…
Reference in a new issue