1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/devices/xiaomi-tissot/default.nix

46 lines
958 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
mobile.device.name = "xiaomi-tissot";
mobile.device.identity = {
2020-04-04 07:24:30 +03:00
name = "A1";
manufacturer = "Xiaomi";
};
mobile.hardware = {
soc = "qualcomm-msm8953";
ram = 1024 * 4;
screen = {
width = 1080; height = 1920;
};
};
mobile.boot.stage-1 = {
kernel.package = pkgs.callPackage ./kernel { };
};
mobile.system.android = {
bootimg.flash = {
offset_base = "0x80000000";
offset_kernel = "0x00008000";
offset_second = "0x00f00000";
offset_ramdisk = "0x01000000";
offset_tags = "0x00000100";
pagesize = "2048";
};
};
boot.kernelParams = [
"androidboot.hardware=qcom"
"msm_rtb.filter=0x237"
"ehci-hcd.park=3"
"lpm_levels.sleep_disabled=1"
"androidboot.bootdevice=7824900.sdhci"
"earlycon=msm_hsl_uart,0x78af000"
"androidboot.selinux=permissive"
"buildvariant=eng"
];
mobile.system.type = "android";
}