1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
mobile-nixos/devices/asus-flo/default.nix

46 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
{
mobile.device.name = "asus-flo";
mobile.device.identity = {
name = "Nexus 7 2013 Wifi";
manufacturer = "Asus";
};
mobile.device.info = {
# TODO : make kernel part of options.
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
dtb = "";
flash_offset_base = "0x80200000";
flash_offset_kernel = "0x00008000";
flash_offset_ramdisk = "0x02000000";
flash_offset_second = "0x00f00000";
flash_offset_tags = "0x00000100";
flash_pagesize = "2048";
};
mobile.hardware = {
soc = "qualcomm-apq8064-1aa";
ram = 1024 * 2;
screen = {
width = 1200; height = 1920;
};
};
boot.kernelParams = lib.mkMerge [
# This is a hack to work around the fact that the bootloader ignores some
# of the initial bytes of the kernel command line.
(lib.mkOrder 0 [
"xxxxxxxxxxxxxxxxxxxxxxxxxx"
])
[
"console=ttyMSM0,115200,n8"
"user_debug=31"
"msm_rtb.filter=0x3F"
"ehci-hcd.park=3"
"vmalloc=340M"
]
];
mobile.system.type = "android";
}