about summary refs log tree commit diff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-23T17·34+0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-23T18·50+0200
commitf32cdc4fab1bff919c3d074a95e32a9934eb7386 (patch)
treeaf13b2222601d16d596629faf0093298a8e461cc /src/libstore/globals.hh
parent38dcd0c4b8789f3ae5c9384e103123ec44f76b71 (diff)
Turn $NIX_REMOTE into a configuration option
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 264e82a16e20..12d57b3e7647 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -2,6 +2,7 @@
 
 #include "types.hh"
 #include "config.hh"
+#include "util.hh"
 
 #include <map>
 #include <limits>
@@ -84,6 +85,9 @@ public:
     /* File name of the socket the daemon listens to.  */
     Path nixDaemonSocketFile;
 
+    Setting<std::string> storeUri{this, getEnv("NIX_REMOTE", "auto"), "store",
+        "The default Nix store to use."};
+
     Setting<bool> keepFailed{this, false, "keep-failed",
         "Whether to keep temporary directories of failed builds."};