@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2020 Peng Mei Yu <pengmeiyu@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -96,7 +97,9 @@ GID."
(documentation "Run nix-daemon.")
(requirement '())
(start #~(make-forkexec-constructor
- (list (string-append #$nix "/bin/nix-daemon"))))
+ (list (string-append #$nix "/bin/nix-daemon"))
+ #:environment-variables
+ '("NIX_CONF_DIR=/etc/nix")))
(respawn? #f)
(stop #~(make-kill-destructor)))))