1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 03:32:02 +03:00
not really known
Go to file
Samuel Dionne-Riel 56458a477c ply-image: Adds hack for framebuffer flipping...
This is more specifically for msm devices.

Let's hope it won't cause issues down the line, otherwise we'll have to
make it configurable.
2018-07-05 15:08:57 -04:00
artwork Reviews splash 2018-07-05 00:52:36 -04:00
bin Makes bin/build exec. 2018-06-23 22:08:24 -04:00
devices asus-*: fixes framebuffer patches... 2018-07-05 00:48:35 -04:00
lib Reviews how overlay works and is used. 2018-06-26 20:49:15 -04:00
modules framebuffer: Removes fb.modes support... 2018-07-05 15:00:24 -04:00
nixos WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
overlay ply-image: Adds hack for framebuffer flipping... 2018-07-05 15:08:57 -04:00
systems bootimg generation properly supports qcdt format. 2018-07-01 17:57:23 -04:00
.gitignore WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
default.nix Reviews how overlay works and is used. 2018-06-26 20:49:15 -04:00
README.md WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
shell.nix Reviews how overlay works and is used. 2018-06-26 20:49:15 -04:00
system-image.nix Fixes system-image. 2018-06-26 21:54:23 -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
bin/boot-qemu

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

local.nix

This file can be used to override (possibly with lib.mkForce) options on a global scale for your local builds.

If the file does not exist, it will not fail.

A sample local.nix:

{ lib, ... }:

{
  mobile.boot.stage-1.splash.enable = false;
}

This will disable splash screens.

This will be most useful to configure local sensitive stuff like password (hashes) or ssh keys.

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.