1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
not really known
Go to file
Samuel Dionne-Riel 809c3f37a6 qemu-x86_64: refactors splash into a variable...
To allow playing around.
2018-06-18 22:13:57 -04:00
bin boot-qemu: also print the qemu command line. 2018-06-18 21:22:30 -04:00
devices qemu-x86_64: refactors splash into a variable... 2018-06-18 22:13:57 -04:00
lib WIP Migrates device configuration into the options system. 2018-06-16 23:21:41 +00:00
modules initrd: Implements messages redirection. 2018-06-18 21:43:58 -04:00
overlay Finishes porting to declarative configuration. 2018-06-17 17:50:32 +00:00
systems Adds qemu-x86_64 device. 2018-06-17 20:55:34 -04:00
.gitignore Adds default.nix that allows calling nix-build. 2018-06-10 01:00:12 +00:00
default.nix WIP Migrates device configuration into the options system. 2018-06-16 23:21:41 +00:00
loading.png Updates graphics (+ export png) 2018-06-11 19:25:48 -04:00
loading.ppm.gz Adds loading ppm, and adds R G B text to temp splash. 2018-06-11 00:00:23 +00:00
loading.xcf Updates graphics (+ export png) 2018-06-11 19:25:48 -04:00
README.md Spelling is for chumps. 2018-06-17 21:12:04 -04:00
shell.nix Adds Asus Z00T kernel 2018-06-10 00:57:12 +00:00
temp-splash.png Updates graphics (+ export png) 2018-06-11 19:25:48 -04:00
temp-splash.ppm.gz Adds loading ppm, and adds R G B text to temp splash. 2018-06-11 00:00:23 +00:00
temp-splash.xcf Updates graphics (+ export png) 2018-06-11 19:25:48 -04:00

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

Booting qemu

bin/build qemu-x86_64 -I nixpkgs=an/unstable/(nixos-or-nixpkgs)/checkout/nixpkgs/
bin/boot-qemu

This currently does not build using 18.03 and may never (18.09 may release before!)

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.

Notes

This is an unofficial and unsanctioned project.