@David天宇Wong there is a difference between nix build and nix-build (note the space). The stand-alone nix tool is for flakes (and some utilities like nix show-derivation etc), while the nix-* binaries are for non-flake Nix. Summary: this article is still accurate in Nov 2022, although it could do with a this is about non-flake Nix notice. – More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.