1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/examples/hello/README.md
Samuel Dionne-Riel 3d0552223d examples/hello: introduce a minimal useful example system
The examples/hello system can be used by users that want to boot a
minimal, and cross-compilable system.

This is better than a "raw" build of the root of the Mobile NixOS repo
since it provides a stage-2 application stating the system booted
successfully.
2020-05-31 18:54:07 -04:00

24 lines
789 B
Markdown

> **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.