mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
services: guix: Add guix-build-coordinator-agent cache directory.
As this is needed when substituting derivations. * gnu/services/guix.scm (guix-build-coordinator-agent-shepherd-services): Set XDG_CACHE_HOME. (guix-build-coordinator-agent-activation): Create /var/cache/guix-build-coordinator-agent.
This commit is contained in:
parent
c2396ceb6e
commit
b6ece1c206
1 changed files with 8 additions and 0 deletions
|
@ -364,6 +364,8 @@ (define (guix-build-coordinator-agent-shepherd-services config)
|
|||
#:environment-variables
|
||||
`(,(string-append
|
||||
"GUIX_LOCPATH=" #$glibc-utf8-locales "/lib/locale")
|
||||
;; XDG_CACHE_HOME is used by Guix when caching narinfo files
|
||||
"XDG_CACHE_HOME=/var/cache/guix-build-coordinator-agent"
|
||||
"LC_ALL=en_US.utf8")
|
||||
#:log-file "/var/log/guix-build-coordinator/agent.log"))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
@ -376,6 +378,12 @@ (define %user (getpw "guix-build-coordinator-agent"))
|
|||
|
||||
(mkdir-p "/var/log/guix-build-coordinator")
|
||||
|
||||
;; Create a cache directory for storing narinfo files if downloaded
|
||||
(mkdir-p "/var/cache/guix-build-coordinator-agent")
|
||||
(chown "/var/cache/guix-build-coordinator-agent"
|
||||
(passwd:uid %user)
|
||||
(passwd:gid %user))
|
||||
|
||||
;; Allow writing the PID file
|
||||
(mkdir-p "/var/run/guix-build-coordinator-agent")
|
||||
(chown "/var/run/guix-build-coordinator-agent"
|
||||
|
|
Loading…
Reference in a new issue