edit Using UnetbootinIt is possible to install NixOS from a USB stick, rather than from a CD. This is useful if you want to install NixOS on a machine that doesn't have a CD-ROM drive (such as most netbooks), or if you don't want to waste a blank CD. Here is how to do it:
edit Using syslinuxIf you have trouble booting from a USB drive or sdcard with Unetbootin (I just got a blinking cursor instead of a bootloader on an Asus eee 1000) the procedure described on http://www.knoppix.net/wiki/Bootable_USB_Key should work. After preparing the sdcard with mkdiskimage and syslinux you can mount it and copy all the content from the NixOS iso: $ mount -o loop ~/Downloads/nixos-graphical-0.1pre27337-i686-linux.iso /media/iso $ rsync -av --progress /media/iso/ /media/sd-card/ The syslinux.cfg needs to be created manually, but the details can easily be derived from the grub.cfg on the NixOS install cd. I specified the root device by UUID, to get the UUID: blkid /dev/mmcblk0p1 The relevant section from the live cd: /media/sd-card/boot/grub/grub.cfg
menuentry "NixOS Installer / Rescue" {
linux /boot/bzImage init=/nix/store/r7xhnzymi1ll49r4glf1dwr5y1alx0bl-system/init root=LABEL=NIXOS_INSTALL_CD_0.1pre27337 splash=verbose vga=0x317
initrd /boot/initrd
}
can be used in the syslinux config file: /media/sd-card/syslinux.cfg (you should just need to update the init path and the root UUID / LABEL or device path) DEFAULT linux LABEL linux SAY Now booting the kernel from SYSLINUX... KERNEL /boot/bzImage APPEND init=/nix/store/r7xhnzymi1ll49r4glf1dwr5y1alx0bl-system/init root=UUID=509C-63E2 ro initrd=/boot/initrd splash=verbose |