mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
6095b623f6
Network doesn't work :/
31 lines
902 B
Nix
31 lines
902 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
mobile.device.name = "asus-z00t";
|
|
mobile.device.info = (lib.importJSON ../postmarketOS-devices.json).asus-z00t // {
|
|
# TODO : make kernel part of options.
|
|
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
|
};
|
|
mobile.hardware = {
|
|
# This could also be pre-built option types?
|
|
soc = "qualcomm-msm8939";
|
|
# 3GB for the specific revision supported.
|
|
# When this will be actually used, this may be dropped to 2, and/or
|
|
# document all ram types as a list and work with min/max of those.
|
|
ram = 1024 * 3;
|
|
screen = {
|
|
width = 1080; height = 1920;
|
|
fb_modes = ./fb.modes;
|
|
};
|
|
};
|
|
mobile.system.type = "android-bootimg";
|
|
mobile.boot.stage-1 = {
|
|
extraUtils = with pkgs; [
|
|
strace
|
|
];
|
|
initFramebuffer = ''
|
|
echo 10 > /sys/class/leds/lcd-backlight/brightness
|
|
'';
|
|
};
|
|
}
|