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:
Bjørn Forsman 2017-09-26 22:17:01 +02:00 committed by Franz Pletz
parent 7cbf3a27de
commit 3c6eb3a247

View file

@ -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";