From d2e468a571a9abf275a07d530dbd2949d1a6d077 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 29 Jul 2021 16:12:23 +0200 Subject: [PATCH] nixos/version: make versions in /etc/os-release less verbose Fixes #127654; also see details in there. --- nixos/modules/misc/version.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index a6fffb76f6e8..8f246a9278b7 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -103,9 +103,10 @@ in '' NAME=NixOS ID=nixos - VERSION="${cfg.version} (${cfg.codeName})" + VERSION="${cfg.release} (${cfg.codeName})" VERSION_CODENAME=${toLower cfg.codeName} - VERSION_ID="${cfg.version}" + VERSION_ID="${cfg.release}" + BUILD_ID="${cfg.version}" PRETTY_NAME="NixOS ${cfg.release} (${cfg.codeName})" LOGO="nix-snowflake" HOME_URL="https://nixos.org/"