From 55eb18d212b7828e366f234585e64c18b84a36a9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 15 Jul 2016 12:02:22 +0200 Subject: Add some more info to the nixos-version manpage --- nixos/doc/manual/man-nixos-version.xml | 91 ++++++++++++++++------------------ 1 file changed, 43 insertions(+), 48 deletions(-) diff --git a/nixos/doc/manual/man-nixos-version.xml b/nixos/doc/manual/man-nixos-version.xml index db7440977c9..615d74f9090 100644 --- a/nixos/doc/manual/man-nixos-version.xml +++ b/nixos/doc/manual/man-nixos-version.xml @@ -10,7 +10,7 @@ nixos-version - show the version of nixpkgs NixOS was built from + show the NixOS version @@ -23,58 +23,52 @@ Description -This command describes the version of nixpkgs used to build -NixOS. +This command shows the version of the currently active NixOS +configuration. For example: -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 - - - - - - +The version consists of the following elements: + + + + 16.03 + The NixOS release, indicating the year and month + in which it was released (e.g. March 2016). + + + + 1011 + The number of commits in the Nixpkgs Git + repository between the start of the release branch and the commit + from which this version was built. This ensures that NixOS + versions are monotonically increasing. It is + git when the current NixOS configuration was + built from a checkout of the Nixpkgs Git repository rather than + from a NixOS channel. + + + + 6317da4 + The first 7 characters of the commit in the + Nixpkgs Git repository from which this version was + built. + + + + Emu + The code name of the NixOS release. The first + letter of the code name indicates that this is the N'th stable + NixOS release; for example, Emu is the fifth + release. + + + + + @@ -89,7 +83,8 @@ NixOS. - The output will be the full hash of the git commit + Show the full SHA1 hash of the Git commit from which this + configuration was built, e.g. $ nixos-version --hash 6317da40006f6bc2480c6781999c52d88dde2acf -- cgit 1.4.1