From 7c33ed691c123781c7fe6046e3e7c6a6b99c61e4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 Aug 2016 11:55:20 +0200 Subject: [PATCH] nix-daemon.service: Set $XDG_CACHE_HOME Nix requires either $HOME or $XDG_CACHE_HOME to be set. --- misc/systemd/nix-daemon.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in index 5fc04a3f5..fcd799e17 100644 --- a/misc/systemd/nix-daemon.service.in +++ b/misc/systemd/nix-daemon.service.in @@ -7,3 +7,4 @@ ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket [Service] ExecStart=@@bindir@/nix-daemon nix-daemon --daemon KillMode=process +Environment=XDG_CACHE_HOME=/root/.cache