nixpkgs/nixos/modules
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
..
config Merge branch 'master.upstream' into staging.upstream 2015-07-05 13:06:02 -07:00
hardware types.uniq types.str -> types.str 2015-06-15 18:12:32 +02:00
installer nixos: Add derivations for SD card installation images on ARM 2015-07-26 00:31:20 +03:00
misc riak: new nixos service 2015-07-21 09:25:41 -04:00
profiles Replaces https://github.com/NixOS/nixpkgs/pull/8368 2015-06-17 19:26:17 +02:00
programs Merge branch 'master.upstream' into staging.upstream 2015-06-17 11:57:40 -07:00
security Merge branch 'master.upstream' into staging.upstream 2015-07-05 13:06:02 -07:00
services nixos/rogue: Set WorkingDirectory to /tmp 2015-07-22 16:08:17 +03:00
system extlinux-conf-builder: Fix warning when building in chroot 2015-07-26 00:31:20 +03:00
tasks Don't include wireless tools in containers 2015-07-22 12:51:21 +02:00
testing test-instrumentation.nix: Prevent calling a pager 2015-01-15 14:39:29 +01:00
virtualisation Use ConditionVirtualization to disable some services in containers 2015-07-22 12:23:40 +02:00
module-list.nix riak: new nixos service 2015-07-21 09:25:41 -04:00
rename.nix Merge pull request #6702 from joachifm/dnscrypt-proxy 2015-07-12 00:17:46 -07:00