1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-11 03:55:23 +03:00
not really known
Go to file
Samuel Dionne-Riel 54a52b8351 splash: different splash for sthe stages
This is to allow platforms where the virtual console is not available to
graphically show the state of the system; is it stuck in stage-1, early
stage-2 or is it about to get into systemd's init?

This is still a big hack, though but relatively clean.
2019-09-21 17:46:09 -04:00
artwork splash: different splash for sthe stages 2019-09-21 17:46:09 -04:00
bin bin/boot-qemu: WIP fixes for stage-2 changes 2019-09-21 13:56:26 -04:00
devices system-target: reviews implementation 2019-09-19 15:31:26 -04:00
doc doc: Adds initial blurb about partitions. 2018-07-10 19:23:13 -04:00
lib image-builder: FIXME disables ext4 fsck... 2019-09-21 13:58:03 -04:00
modules splash: different splash for sthe stages 2019-09-21 17:46:09 -04:00
overlay overlay: picks up unused changes 2019-09-21 17:32:16 -04:00
systems depthcharge: Integrates rootfs into image build 2019-09-21 17:32:16 -04:00
.gitignore WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
default.nix default.nix: WIP minor refactor 2019-09-21 17:32:16 -04:00
LICENSE Create LICENSE 2019-05-08 16:27:21 -04:00
README.md Updates the README 2019-08-26 10:31:43 -04:00
shell.nix Reviews how overlay works and is used. 2018-06-26 20:49:15 -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.

This is intended as building blocks, allowing the end-users to configure their systems as desired.

The amount of targeted devices does not dilute or devalue the work. It's the other way around, it increases the odds that people will start using the project and contribute back.

Prior work

This project initially borrowed and relied on the hard work from the PostmarketOS project. They are forever thanked in their valiant efforts.