1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00
not really known
Go to file
2020-05-04 19:29:31 -04:00
.ci ci: Add assertion that validates evaluations are differents 2020-04-07 23:12:18 -04:00
.github/workflows actions: Init GitHub actions 2020-03-28 22:54:09 -04:00
artwork artwork: Remove now unneeded sad-phone png 2020-03-09 18:17:36 -04:00
bin bin/kernel-normalize-config: Use bin/menuconfig 2020-03-27 16:34:33 -04:00
boot boot/init: Use the new error reporting applet 2020-03-09 19:45:49 -04:00
devices qemu-x86_64: Use qemu EDID support 2020-04-22 22:48:30 -04:00
doc doc: Add about page 2020-05-04 19:29:31 -04:00
examples/demo demo: Expose build attribute 2020-02-03 21:58:22 -05:00
lib lib/configuration.nix: Add method for importing in system configuration 2020-04-06 23:01:57 -04:00
modules cross-workarounds: Disable udisks for cross-builds 2020-04-23 00:01:33 -04:00
overlay seabios: Remove, to rely on qemu EDID support 2020-04-22 22:47:56 -04:00
profiles Adds an installer output... 2019-09-21 22:45:41 -04:00
systems rootfs: Add Hydra build product 2020-03-31 15:53:47 -04:00
.gitignore WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
CONTRIBUTING.adoc doc: Add a contributing document 2020-04-29 18:02:34 -04:00
default.nix default.nix: Pass additional config to evalWith 2020-04-07 23:13:07 -04:00
LICENSE LICENSE: update license notice 2020-05-04 19:28:41 -04:00
README.adoc README: add language to code fence 2020-04-06 19:53:34 -04:00
release.nix release-tools: Split useful Mobile NixOS evaluation tools 2020-04-04 14:39:23 -04:00
shell.nix Added additional development tools 2019-10-27 00:45:47 +10:00

= Mobile NixOS

*This is expected to be built against the nixos-unstable for now.*


== 2-minutes startup

For an already bootloader-unlocked Android-based, `fastboot`-using device.

```
# Build a boot image
nix-build --argstr device $DEVICE -A build.android-bootimg

# Reboot the phone to fastboot
adb wait-for-device && adb reboot bootloader

# Use fastboot to boot the produced image
fastboot boot result
```

=== Booting qemu

The qemu target has a `vm` build output, which results in a script that will
automatically start the "virtual device".

```
# Build the system
nix-build --argstr device qemu-x86_64 -A build.vm

# Run the VM, using the script
./result
```

=== `local.nix`

This file is used to work on producing build artifacts from the "WIP" repository
checkout. This is equivalent to adding settings in `configuration.nix`.

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

A sample `local.nix`:

```nix
{ lib, ... }:

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

This will disable splash screens.

Note that this can be set to another file with `<mobile-nixos-configuration>`.
By setting it to the path of a nix expression, it will be used instead of using
`local.nix`.

This is the current mechanism expected to be used to create special builds using
the mobile-nixos tooling (e.g. to create a custom special `boot.img`).


== Goals

The goal is to get a NixOS system 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
link:https://postmarketos.org/[PostmarketOS project]. They are forever
thanked in their efforts.