From 0ba3761ba86a90ad554cd41e4a03ce7ba4de9add Mon Sep 17 00:00:00 2001 From: davidak Date: Mon, 2 Dec 2019 20:04:44 +0100 Subject: [PATCH] nixos/version: PRETTY_NAME in /etc/os-release uses the release now instead of full version to be more suitable for presentation to the user --- nixos/doc/manual/release-notes/rl-2003.xml | 7 +++++++ nixos/modules/misc/version.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index 3447b1221bc3..fa28af2aa9a7 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -236,6 +236,13 @@ release announcement for more information. + + + PRETTY_NAME in /etc/os-release + uses the release now instead of full version + to be more suitable for presentation to the user + + diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 773724ffbd5e..cf17f9aae38b 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -92,7 +92,7 @@ in VERSION="${cfg.version} (${cfg.codeName})" VERSION_CODENAME=${toLower cfg.codeName} VERSION_ID="${cfg.version}" - PRETTY_NAME="NixOS ${cfg.version} (${cfg.codeName})" + PRETTY_NAME="NixOS ${cfg.release} (${cfg.codeName})" LOGO="nix-snowflake" HOME_URL="https://nixos.org/" DOCUMENTATION_URL="https://nixos.org/nixos/manual/index.html"