diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index f87c41312..c25cdb60c 100644 --- a/src/nix-env/main.cc +++ b/src/nix-env/main.cc @@ -516,6 +516,8 @@ static void opQuery(Globals & globals, enum { sInstalled, sAvailable } source = sInstalled; + readOnlyMode = true; /* makes evaluation a bit faster */ + for (Strings::iterator i = opFlags.begin(); i != opFlags.end(); ++i) if (*i == "--status" || *i == "-s") printStatus = true;