GNU bug report logs - #41704
[PATCH] services: nix: Set NIX_CONF_DIR environment variable.

Previous Next

Package: guix-patches;

Reported by: Peng Mei Yu <pengmeiyu <at> riseup.net>

Date: Thu, 4 Jun 2020 08:36:01 UTC

Severity: normal

Tags: patch

Done: Peng Mei Yu <pengmeiyu <at> riseup.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Peng Mei Yu <pengmeiyu <at> riseup.net>
To: 41704 <at> debbugs.gnu.org
Cc: Peng Mei Yu <pengmeiyu <at> riseup.net>
Subject: [bug#41704] [PATCH V2] services: nix: Set NIX_CONF_DIR environment variable.
Date: Thu,  4 Jun 2020 17:09:22 +0800
* gnu/services/nix.scm (nix-shepherd-service): Set NIX_CONF_DIR environment
variable to "/etc/nix".
---
 gnu/services/nix.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/services/nix.scm b/gnu/services/nix.scm
index dfe33991d0..d5a057d2ee 100644
--- a/gnu/services/nix.scm
+++ b/gnu/services/nix.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2019 Oleg Pykhalov <go.wigust <at> gmail.com>
+;;; Copyright © 2020 Peng Mei Yu <pengmeiyu <at> 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)))))
 
-- 
2.26.2





This bug report was last modified 4 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.