1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/nixos/modules/installer/cd-dvd
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
..
channel.nix Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
installation-cd-base.nix Move stuff to modules/profiles/installation-device.nix 2015-06-10 15:28:55 +02:00
installation-cd-graphical-new-kernel.nix nixos-iso: Re-enable new kernel iso images (close #2839) 2014-06-17 21:23:52 +02:00
installation-cd-graphical.nix Don't include 4 editors in the minimal installation CD 2015-06-04 11:06:44 +02:00
installation-cd-minimal-new-kernel.nix nixos-iso: Re-enable new kernel iso images (close #2839) 2014-06-17 21:23:52 +02:00
installation-cd-minimal.nix Move stuff to modules/profiles/installation-device.nix 2015-06-10 15:28:55 +02:00
iso-image.nix nixos/installer: Add grub2_efi to the store so that it is available to install 2015-07-05 19:11:56 -07:00
sd-image-armv7l-multiplatform.nix nixos: Add derivations for SD card installation images on ARM 2015-07-26 00:31:20 +03:00
sd-image-raspberrypi.nix nixos: Add derivations for SD card installation images on ARM 2015-07-26 00:31:20 +03:00
sd-image.nix nixos: Add derivations for SD card installation images on ARM 2015-07-26 00:31:20 +03:00
system-tarball-fuloong2f.nix jfsrec: Remove derivation 2014-11-02 17:22:27 -08:00
system-tarball-pc-readme.txt http://nixos.org -> https://nixos.org 2014-12-14 11:26:45 +01:00
system-tarball-pc.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
system-tarball-sheevaplug.nix nixos/initrd: Generic library copying 2015-03-28 18:37:29 -07:00
system-tarball.nix nixos/manual: Use literalExample when feasible. 2014-08-27 23:41:15 +02:00