Skip to content

Commit

Permalink
nixos/iso-image.nix: add top-level /version.txt file
Browse files Browse the repository at this point in the history
This makes it easy to identify which NixOS version is written to an USB
stick without actually booting it.

(cherry picked from commit 3c6eb3a)
  • Loading branch information
bjornfor committed Sep 28, 2017
1 parent 64a73df commit 772d5c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/installer/cd-dvd/iso-image.nix
Expand Up @@ -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";
Expand Down

0 comments on commit 772d5c0

Please sign in to comment.