aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-23 19:34:49 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-23 20:50:28 +0200
commitf32cdc4fab1bff919c3d074a95e32a9934eb7386 (patch)
treeaf13b2222601d16d596629faf0093298a8e461cc /src/nix
parent38dcd0c4b8789f3ae5c9384e103123ec44f76b71 (diff)
Turn $NIX_REMOTE into a configuration option
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/command.cc5
-rw-r--r--src/nix/command.hh1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index 0f6bb294b..70d642605 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -78,9 +78,6 @@ bool MultiCommand::processArgs(const Strings & args, bool finish)
StoreCommand::StoreCommand()
{
- storeUri = getEnv("NIX_REMOTE");
-
- mkFlag(0, "store", "store-uri", "URI of the Nix store to use", &storeUri);
}
ref<Store> StoreCommand::getStore()
@@ -92,7 +89,7 @@ ref<Store> StoreCommand::getStore()
ref<Store> StoreCommand::createStore()
{
- return openStore(storeUri);
+ return openStore();
}
void StoreCommand::run()
diff --git a/src/nix/command.hh b/src/nix/command.hh
index bf897f620..77ca8cfb6 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -33,7 +33,6 @@ class Store;
/* A command that require a Nix store. */
struct StoreCommand : virtual Command
{
- std::string storeUri;
StoreCommand();
void run() override;
ref<Store> getStore();