# Is there a way to build NixOS so that it would run off a USB drive on a Blackberry?

**URL:** https://discourse.nixos.org/t/is-there-a-way-to-build-nixos-so-that-it-would-run-off-a-usb-drive-on-a-blackberry/3370
**Category:** Help
**Created:** [July 4, 2019, 12:11am UTC](https://discourse.nixos.org/t/is-there-a-way-to-build-nixos-so-that-it-would-run-off-a-usb-drive-on-a-blackberry/3370 "2019-07-04T00:11:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![allowthere](https://discourse.nixos.org/user_avatar/discourse.nixos.org/allowthere/32/1489_2.png) [@allowthere](https://discourse.nixos.org/u/allowthere)
#### Post date: [July 4, 2019, 12:11am UTC](https://discourse.nixos.org/t/is-there-a-way-to-build-nixos-so-that-it-would-run-off-a-usb-drive-on-a-blackberry/3370/1 "2019-07-04T00:11:27Z")

</div>

According to the Raspberry Pi website, I can get Raspbian to boot off a USB hard drive by using `echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt`. Is there a way to get nixos to boot off a USB drive? In raspbian, I can dd the original image to the USB drive without a problem, would I be able to do that in nixos?
