1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/devices/oneplus-oneplus3/default.nix
2020-04-04 00:26:41 -04:00

50 lines
1.3 KiB
Nix

{ config, lib, pkgs, ... }:
{
mobile.device.name = "oneplus-oneplus3";
mobile.device.info = rec {
format_version = "0";
name = "OnePlus 3";
manufacturer = "OnePlus";
date = "";
dtb = "";
modules_initfs = "";
arch = "aarch64";
keyboard = false;
external_storage = true;
screen_width = "1080";
screen_height = "1920";
dev_touchscreen = "";
dev_touchscreen_calibration = "";
dev_keyboard = "";
flash_method = "fastboot";
kernel_cmdline = "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.selinux=permissive buildvariant=eng";
generate_bootimg = true;
flash_offset_base = "0x80000000";
flash_offset_kernel = "0x00008000";
flash_offset_ramdisk = "0x01000000";
flash_offset_second = "0x00f00000";
flash_offset_tags = "0x00000100";
flash_pagesize = "4096";
# TODO : make kernel part of options.
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
};
mobile.hardware = {
soc = "qualcomm-msm8996";
ram = 1024 * 6;
screen = {
width = 1080; height = 1920;
};
};
mobile.usb.mode = "android_usb";
# Google
mobile.usb.idVendor = "18D1";
# "Nexus 4"
mobile.usb.idProduct = "D001";
mobile.system.type = "android";
}