nixos-version8NixOSnixos-versionshow the version of nixpkgs NixOS was built fromnixos-versionDescriptionThis command describes the version of nixpkgs used to build
NixOS.By default the output includes:The NixOS releaseNumber of commits since the releaseGit SHA of the released commitCodename of the NixOS releaseExampleHere is an example output, and corresponding information:
$ nixos-version
16.03.1011.6317da4 (Emu)
AttributeValueNixOS Release16.03Commit Count1011Commit SHA6317da4Release CodenameEmuOptionsThis command accepts the following options:The output will be the full hash of the git commit
$ nixos-version --hash
6317da40006f6bc2480c6781999c52d88dde2acf