nixpkgs/nixos/modules/installer/tools/nixos-version.sh

15 lines
199 B
Bash

#! @shell@
case "$1" in
-h|--help)
exec man nixos-version
exit 1
;;
--hash|--revision)
echo "@nixosRevision@"
;;
*)
echo "@nixosVersion@ (@nixosCodeName@)"
;;
esac