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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue