Bootable NixOS image for the Reform 2 Nitrogen8m.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emery Hemingway baf27d7373 Add README 4 weeks ago
.gitignore Image for 20.09 4 weeks ago Add README 4 weeks ago
flake.lock Image for 20.09 4 weeks ago
flake.nix Image for 20.09 4 weeks ago
installer.nix Image for 20.09 4 weeks ago
sd-image.nix Image for 20.09 4 weeks ago

Bootable NixOS SD image

Requires an aarch64 host and Nix with flake support.


nix flake show "git+"
nix flake list-inputs "git+"


nix build "git+" -L


The generation of this image should be deterministic and match the following sha256 digest:

0ba80fbf466bcbbeffaea78af036b34abead25f06128979d864bae687b8a928a  result/sd-image/nixos-sd-image-20.09.20200831.4684bb9-aarch64-linux.img.bz2

If it does not, please contact me and we can diffoscope images.


bzcat ./result/sd-image/nixos-sd-image-20.09.20200831.4684bb9-aarch64-linux.img.bz2 > /dev/mmcblk1


This image contains a mutable NixOS installation that will initialize itself on first boot.

To install NixOS to the NVMe device:

  • format and mount the NVMe at /mnt

  • mount /dev/mmcblk1p1 at /mnt/boot (the live image)

  • run nixos-generate-config --root /mnt

  • Edit the file at /mnt/etc/nixos/configuration.nix to import configuration from the nixos-hardware repository:

{ config, pkgs, ... }:


  imports = let
    nixosHardware = fetchGit {
      url = "";
      ref = "reform";
  in [

  • Finish customizing /mnt/etc/nixos/configuration.nix and run nixos-install

  • Move /mnt/boot to /mnt/boot.bak. Uboot will now boot from /mnt/extlinux.

  • Reboot?

For more information see the NixOS manual