1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/examples/hello
Samuel Dionne-Riel 9870fc5ad1 examples/hello: Don't provide misc. reboot modes for now
We'll think it over for how we want to handle custom reboot commands,
but some platforms (e.g. u-boot, depthcharge, qemu) don't and can't use
them.

A goal is to keep stage-2 as generic as possible, so building into it
some knowledge of this is harder.

At any rate, the user can still reboot, and hold the key combo as
needed!
2020-10-15 22:08:21 -04:00
..
app examples/hello: Don't provide misc. reboot modes for now 2020-10-15 22:08:21 -04:00
configuration.nix examples/hello: introduce a minimal useful example system 2020-05-31 18:54:07 -04:00
default.nix examples/hello: introduce a minimal useful example system 2020-05-31 18:54:07 -04:00
README.md examples/hello: introduce a minimal useful example system 2020-05-31 18:54:07 -04:00
workaround-v4l_id-hang.nix examples/hello: introduce a minimal useful example system 2020-05-31 18:54:07 -04:00

Note

: This example system can be used to make a minimal system that can be built using cross-compilation, to validate that the device goes to stage-2.

Building

 $ cd .../mobile-nixos
 $ nix-build examples/hello --argstr device DEVICE-NAME -A build.default

Installing

Follow the installation instructions for your device.

Running

This system should boot using the usual stage-1 boot process, followed by a specialized stage-2 configuration that runs a single-purpose application to provide a tangible proof that the boot process has completed successfully.

Note that there is no expected way to use this system other than to see the specialized application starting. This is not intended to be a starting point to configure a "normal" system on your device.