nix-daemon.service: Set $XDG_CACHE_HOME

Nix requires either $HOME or $XDG_CACHE_HOME to be set.
This commit is contained in:
Eelco Dolstra 2016-08-31 11:55:20 +02:00
parent d74c8a3f4e
commit 7c33ed691c

View file

@ -7,3 +7,4 @@ ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
[Service] [Service]
ExecStart=@@bindir@/nix-daemon nix-daemon --daemon ExecStart=@@bindir@/nix-daemon nix-daemon --daemon
KillMode=process KillMode=process
Environment=XDG_CACHE_HOME=/root/.cache