diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-06-01 23:41:40 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-01 23:41:40 +0200 |
commit | a13c1bf4ca0b15fa53235c2bd6aa53e4a75c7d0f (patch) | |
tree | 8a19fb07861c685199beb9b8beb4f7d8f2a3d22a /guix/config.scm.in | |
parent | babeea3f9f46c1f1f812e590f46283e91684f327 (diff) | |
parent | 1a3e3162acafd32ff2fb675f2f780d986692c52d (diff) |
Merge branch 'master' into core-updates
Diffstat (limited to 'guix/config.scm.in')
-rw-r--r-- | guix/config.scm.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guix/config.scm.in b/guix/config.scm.in index 8f2c4abd8e..dfe5fe0dbf 100644 --- a/guix/config.scm.in +++ b/guix/config.scm.in @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2017 Caleb Ristvedt <caleb.ristvedt@cune.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,6 +30,7 @@ %store-directory %state-directory + %store-database-directory %config-directory %guix-register-program @@ -80,6 +82,10 @@ (or (getenv "NIX_STATE_DIR") (string-append %localstatedir "/guix"))) +(define %store-database-directory + (or (and=> (getenv "NIX_DB_DIR") canonicalize-path) + (string-append %state-directory "/db"))) + (define %config-directory ;; This must match `GUIX_CONFIGURATION_DIRECTORY' as defined in `nix/local.mk'. (or (getenv "GUIX_CONFIGURATION_DIRECTORY") |