mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-08 12:48:50 +03:00
47 lines
899 B
Markdown
47 lines
899 B
Markdown
Mobile NixOS
|
|
============
|
|
|
|
An overlay for building stuff.
|
|
|
|
This is a work-in-progress.
|
|
|
|
|
|
WIP notes
|
|
---------
|
|
|
|
```
|
|
nix-build --argstr device asus-z00t -A all
|
|
# Maybe `nix copy ./result --to ssh://another-host`
|
|
adb wait-for-device && adb reboot bootloader
|
|
fastboot boot result # or full path
|
|
# getting adb and fastboot working is left as an exercise to the reader.
|
|
```
|
|
|
|
Alternatively, helpers under `bin` can be used. They mostly pave over
|
|
the nix CLI to provide one-liners and one-parameter helpers.
|
|
|
|
```
|
|
# Builds -A all for device_name $1
|
|
bin/build asus-z00t
|
|
```
|
|
|
|
|
|
Goals
|
|
-----
|
|
|
|
The goal is to get a nix-built operating system, preferably NixOS running on
|
|
mobile devices, e.g. Android phones.
|
|
|
|
|
|
Prior work
|
|
----------
|
|
|
|
This project heavily borrows and relies on the hard work from the [PostmarketOS
|
|
project](https://postmarketos.org/).
|
|
|
|
|
|
Notes
|
|
-----
|
|
|
|
> This is an unofficial and unsanctioned project.
|