0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/version: remove nixpkgs commit rev from initrd

This avoids unnecessary initrd rebuilds when nothing in the initrd would
have changed aside from the nixpkgs revision.
This commit is contained in:
Lily Foster 2023-06-14 16:57:34 -04:00
parent 0eeebd64de
commit b5cc73db7d
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -32,7 +32,7 @@ let
VARIANT_ID = cfg.variant_id;
};
initrdReleaseContents = osReleaseContents // {
initrdReleaseContents = (removeAttrs osReleaseContents [ "BUILD_ID" ]) // {
PRETTY_NAME = "${osReleaseContents.PRETTY_NAME} (Initrd)";
};
initrdRelease = pkgs.writeText "initrd-release" (attrsToText initrdReleaseContents);