nixos-version 8 NixOS nixos-version show the version of nixpkgs NixOS was built from nixos-version Description This command describes the version of nixpkgs used to build NixOS. By default the output includes: The NixOS release Number of commits since the release Git SHA of the released commit Codename of the NixOS release Example Here is an example output, and corresponding information: $ nixos-version 16.03.1011.6317da4 (Emu) Attribute Value NixOS Release 16.03 Commit Count 1011 Commit SHA 6317da4 Release Codename Emu Options This command accepts the following options: The output will be the full hash of the git commit $ nixos-version --hash 6317da40006f6bc2480c6781999c52d88dde2acf