Turn $NIX_REMOTE into a configuration option
This commit is contained in:
parent
38dcd0c4b8
commit
f32cdc4fab
4 changed files with 8 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue