# Blank screen – booting on NixOS USB ISO

**URL:** https://discourse.nixos.org/t/blank-screen-booting-on-nixos-usb-iso/5176
**Category:** Help
**Created:** [December 21, 2019, 3:44pm UTC](https://discourse.nixos.org/t/blank-screen-booting-on-nixos-usb-iso/5176 "2019-12-21T15:44:40Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![markuskowa](https://discourse.nixos.org/user_avatar/discourse.nixos.org/markuskowa/32/719_2.png) [@markuskowa](https://discourse.nixos.org/u/markuskowa)
#### Post date: [December 21, 2019, 5:45pm UTC](https://discourse.nixos.org/t/blank-screen-booting-on-nixos-usb-iso/5176/4 "2019-12-21T17:45:29Z")

</div>

No problem:

1. Get a copy of nixpkgs: `git clone https://github.com/NixOS/nixpkgs`
2. Save the [snippet](https://discourse.nixos.org/t/nixos-stable-wont-boot-from-usb-on-xps-7390/4776/5) to `iso-image.nix`
3. Adapt the first line of the script that it points to location of `nixpkgs` (from step 1)
4. run `nix-build iso-image.nix` to build the image.
5. In the folder `result/` you will find the iso-image, which can write to a USB stick with `dd`

---

_[View the full topic](https://discourse.nixos.org/t/blank-screen-booting-on-nixos-usb-iso/5176)._
