aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/guix.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-11-07 20:09:44 +0000
committerChristopher Baines <mail@cbaines.net>2020-11-07 20:09:44 +0000
commitb6ece1c2069ee70c786e4163689cf17b7a0c7278 (patch)
treeddcbdfc5b3a289985200146646939774f927ea35 /gnu/services/guix.scm
parentc2396ceb6eb30ac87755eb8b39583403b35fbd12 (diff)
downloadguix-b6ece1c2069ee70c786e4163689cf17b7a0c7278.tar
guix-b6ece1c2069ee70c786e4163689cf17b7a0c7278.tar.gz
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.
Diffstat (limited to 'gnu/services/guix.scm')
-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"