What’s the simplest, but effective, way to verify that a Nix installation is working properly?
Nix download page has a verify installation section stating:
Check the installation by opening a new terminal and typing:
$ nix-env --version
Nix install process (v2.9.1) ends with:
Try it! Open a new terminal, and type:
$ nix-shell -p nix-info --run "nix-info -m"
Why not just use nix-env --version
at the end of the install process?
Frequently I notice said nix-shell
command being used everywhere to demonstrate that a nix installation is working or to get its details to apply in another context.
Why not just use nix-info
directly?
$ nix-info -m
When using the new experimental commands, would you agree the following alternatives should be suggested?
-
nix --version
instead ofnix-env --version
-
nix doctor
to verify a Nix installation
It’s also strange that nix-info
is not mentioned in the Nix Manual Command Reference and I was not able to find equivalence in the new experimental commands.