1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-21 00:37:15 +03:00
mobile-nixos/devices/motorola-addison/default.nix
2019-06-09 22:16:43 -04:00

43 lines
1.3 KiB
Nix

{ config, lib, pkgs, ... }:
{
mobile.device.name = "motorola-addison";
mobile.device.info = rec {
format_version = "0";
name = "Motorola Moto Z Play";
manufacturer = "Motorola";
date = "";
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 = "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 vmalloc=350M buildvariant=userdebug";
generate_bootimg = true;
bootimg_qcdt = true;
flash_offset_base = "0x80000000";
flash_offset_kernel = "0x00008000";
flash_offset_ramdisk = "0x01000000";
flash_offset_second = "0x00f00000";
flash_offset_tags = "0x00000100";
flash_pagesize = "2048";
# TODO : make kernel part of options.
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
dtb = "${kernel}/dtbs/motorola-addison.img";
};
mobile.hardware = {
soc = "qualcomm-msm8953";
ram = 1024 * 3;
screen = {
width = 1080; height = 1920;
};
};
mobile.system.type = "android-bootimg";
}