mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos/iso-image.nix: add top-level /version.txt file
This makes it easy to identify which NixOS version is written to an USB stick without actually booting it.
This commit is contained in:
parent
7cbf3a27de
commit
3c6eb3a247
@ -361,6 +361,9 @@ in
|
||||
{ source = config.isoImage.splashImage;
|
||||
target = "/isolinux/background.png";
|
||||
}
|
||||
{ source = pkgs.writeText "version" config.system.nixosVersion;
|
||||
target = "/version.txt";
|
||||
}
|
||||
] ++ optionals config.isoImage.makeEfiBootable [
|
||||
{ source = efiImg;
|
||||
target = "/boot/efi.img";
|
||||
|
Loading…
Reference in New Issue
Block a user