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

14 lines
189 B
Bash
Raw Normal View History

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