mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03: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