a minimal example for building and booting NixOS on your pinephone
Go to file
colin 4e3a152ae9 build an image which can boot from SD if tow-boot is installed to the eMMC
temporarily disabled some modules to get a smaller, faster to iterate,
image.

need to test flashing tow-boot to the start of the SD card
2022-06-17 19:45:53 -07:00
modules build an image which can boot from SD if tow-boot is installed to the eMMC 2022-06-17 19:45:53 -07:00
README.md minimal NixOS boot to login prompt 2022-06-15 15:14:43 -07:00
flake.lock build an image which can boot from SD if tow-boot is installed to the eMMC 2022-06-17 19:45:53 -07:00
flake.nix build an image which can boot from SD if tow-boot is installed to the eMMC 2022-06-17 19:45:53 -07:00

README.md

build from any nix machine with:

nix build './#pinephone-img'

if nix complains about some "experimental features", then add to the host's nix config: nix.extraOptions = "experimental-features = nix-command flakes";

flash with:

sudo dd if=$(readlink result) of=/dev/sdb bs=4M oflag=direct conv=sync status=progress

then insert the SD card, battery into your pinephone and hold the power button for a few seconds until the power LED turns red. after releasing the power button, the LED should turn yellow, then green. you'll see the "mobile NixOS" splash screen and then be dropped into a TTY login prompt.