1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-26 01:13:37 +03:00
not really known
Go to file
Samuel Dionne-Riel 19d3e79bff Remove postmarketOS-devices.json
Anchoring ourselves to an external project, at this point, is not
feasible. This does not allow us to explore making better use of the
capabilities of nix.

Though, a mechanism using third-party resources, like the postmarketOS
device information, is something that is desirable. The difference is
that it would need to *import* the information in the format used by
mobile-nixos, rather than mobile-nixos importing the information from a
"data dump".
2019-11-07 17:23:33 -05:00
artwork splash: review "loading"... 2019-09-21 18:07:42 -04:00
bin kernel-normalize-config: don't assume -I nixpkgs 2019-10-02 00:34:05 -04:00
devices Remove postmarketOS-devices.json 2019-11-07 17:23:33 -05:00
doc doc: Adds initial blurb about partitions. 2018-07-10 19:23:13 -04:00
examples/demo examples/demo: Adds README 2019-09-24 23:00:02 -04:00
lib Removes custom porcelain... 2019-09-21 22:45:08 -04:00
modules hardware-qualcomm: Add msm8996 SoC 2019-10-05 01:07:55 -04:00
overlay msm-fb-refresher: 0.1 -> 0.2 2019-09-24 23:00:02 -04:00
profiles Adds an installer output... 2019-09-21 22:45:41 -04:00
systems depthcharge: Allows kpart to be built independently 2019-09-22 15:52:10 -04:00
.gitignore WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
default.nix default.nix: Allows composition 2019-09-24 23:00:02 -04:00
LICENSE Create LICENSE 2019-05-08 16:27:21 -04:00
README.md Fixes command in README 2019-10-02 00:32:43 -04:00
shell.nix Reviews how overlay works and is used. 2018-06-26 20:49:15 -04:00

Mobile NixOS

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

WIP notes

# 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.
nix-build --argstr device asus-z00t -A build.android-bootimg

Booting qemu

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

nix-build --argstr device qemu-x86_64 -A build.vm
./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:

{ 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 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.