aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/guix.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index b909c651cc..448f8c350d 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -364,6 +364,8 @@
#: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 @@
(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"