nixpkgs/nixos/lib
Tuomas Tynkkynen df86813d97 nixos: Add derivations for SD card installation images on ARM
The resulting image can be copied to a SD card with `dd` and is directly
bootable by a suitably configured U-Boot. Though depending on the board, some
extra steps are required for copying U-Boot itself to the SD card.

Inside the image is a partition table, with a FAT32 /boot and a normal
writable EXT4 rootfs. It's possible to directly reuse the SD image's
partition layout and "install" NixOS on the same SD card by replacing
the default configuration.nix and nixos-rebuild, and actually is the
preferred way to use these images. To assist in this installation
method, the boot scripts on the image automatically resize the rootfs
partition to fit the SD card on the first boot.

The SD images come in two flavors; one for the ARMv6 Raspberry Pi,
and one multiplatform image for all the boards supported by the
mainline kernel's multi_v7_defconfig config target. At the moment, these
have been tested on:
    - Raspberry Pi Model B (512MB model)
    - NVIDIA Jetson TK1
    - Linksprite pcDuino3 Nano

To build, run:

nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage \
    -I nixos-config='<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix>'
2015-07-26 00:31:20 +03:00
..
test-driver Simple EC2 user-data VM test 2015-06-11 22:54:04 -04:00
build-vms.nix In a test VM it's impossible to connect to itself, so fix this 2015-02-19 21:13:49 +00:00
channel-expr.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
eval-config.nix Bring an importable modulesPath back from the dead, in the only way I know 2015-06-08 01:55:49 +00:00
from-env.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
make-channel.nix Factor the NixOS channel building code out into its own file, so I can use it elsewhere 2015-06-13 21:55:29 -04:00
make-ext4-fs.nix nixos: Add derivations for SD card installation images on ARM 2015-07-26 00:31:20 +03:00
make-iso9660-image.nix nixos: iso-image: use syslinux bootloader for USB booting support 2015-03-24 22:01:04 +01:00
make-iso9660-image.sh nixos: iso-image: filename escaping in xorriso 2015-03-24 22:01:51 +01:00
make-squashfs.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
make-system-tarball.nix nixos/make-system-tarball: extra commands to be executed before archive 2014-12-11 23:17:27 +01:00
make-system-tarball.sh nixos/make-system-tarball: extra commands to be executed before archive 2014-12-11 23:17:27 +01:00
nixpkgs.nix Terrible backward compatibility hack 2013-10-11 13:36:09 +02:00
qemu-flags.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
testing.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
utils.nix nixos/utils: Don't remove first character if not a / 2014-09-03 18:40:05 -07:00