Find packages
$ nix-env --query --available 'hello*'
$ nix-env -qa 'hello*'
Install a package
$ nix-env --install hello
$ nix-env -i hello
Remove a package
$ nix-env --uninstall hello
$ nix-env -e hello
Alternatively rollback
$ nix-env --rollback
Upgrade your packages
$ nix-env --upgrade
demo time
nix-env -iA nixpkgs.haskell.packages.ghc784.ghc-mod
haskell
Under the hood a little bit