services: guix: Do not embed the host (guix config).

Fixes a bug whereby different users would get different derivations for
the same service.

* gnu/services/base.scm (guix-shepherd-service): In 'start' method, do
not embed (guix config).
This commit is contained in:
Ludovic Courtès 2020-11-04 23:58:55 +01:00
parent 341f67991d
commit f7d0a63dda
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1570,8 +1570,10 @@ (define (guix-shepherd-service config)
(ice-9 match)
(gnu build shepherd)))
(start
(with-imported-modules (source-module-closure
'((gnu build shepherd)))
(with-imported-modules `(((guix config) => ,(make-config.scm))
,@(source-module-closure
'((gnu build shepherd))
#:select? not-config?))
#~(lambda args
(define proxy
;; HTTP/HTTPS proxy. The 'http_proxy' variable is set by