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;
|
{ source = config.isoImage.splashImage;
|
||||||
target = "/isolinux/background.png";
|
target = "/isolinux/background.png";
|
||||||
}
|
}
|
||||||
|
{ source = pkgs.writeText "version" config.system.nixosVersion;
|
||||||
|
target = "/version.txt";
|
||||||
|
}
|
||||||
] ++ optionals config.isoImage.makeEfiBootable [
|
] ++ optionals config.isoImage.makeEfiBootable [
|
||||||
{ source = efiImg;
|
{ source = efiImg;
|
||||||
target = "/boot/efi.img";
|
target = "/boot/efi.img";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user