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.
  • Loading branch information
bjornfor authored and fpletz committed Sep 27, 2017
1 parent 7cbf3a2 commit 3c6eb3a
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 3c6eb3a

Please sign in to comment.