a minimal example for building and booting NixOS on your pinephone
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.
colin 3fa96fad06 add a `pinephone` target. post-installation you can use `nixos-rebuild --flake "./#pinephone" switch` 4 months ago
modules pinephone-img target which boots phosh with nmcli support 4 months ago
README.md minimal NixOS boot to login prompt 4 months ago
flake.lock pinephone-img target which boots phosh with nmcli support 4 months ago
flake.nix add a `pinephone` target. post-installation you can use `nixos-rebuild --flake "./#pinephone" switch` 4 months ago

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.