1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00

razer-cheryl2: Minimum edits to device description

This commit is contained in:
Samuel Dionne-Riel 2020-10-09 18:21:37 -04:00
parent 0fe99a919a
commit d517a14b24

View File

@ -1,9 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
/*
* This file has been generated by autoport.
* **Do not** open a Pull Request without having verified the port works.
*/
{ {
mobile.device.name = "razer-cheryl2"; mobile.device.name = "razer-cheryl2";
mobile.device.identity = { mobile.device.identity = {
@ -13,14 +9,14 @@
mobile.hardware = { mobile.hardware = {
soc = "qualcomm-sdm845"; soc = "qualcomm-sdm845";
ram = 1024 * 0/* (in MB) To be filled by the user */; ram = 1024 * 8;
screen = { screen = {
width = 0/* To be filled by the user */; height = 0/* To be filled by the user */; width = 1440; height = 2560;
}; };
}; };
mobile.boot.stage-1 = { mobile.boot.stage-1 = {
kernel.package = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; }; kernel.package = pkgs.callPackage ./kernel { };
}; };
mobile.system.android = { mobile.system.android = {
@ -60,16 +56,13 @@
mobile.system.type = "android"; mobile.system.type = "android";
/* The usb mode could not be detected. mobile.usb.mode = "gadgetfs";
* Assuming this is an older device, android_usb should be used.
* For a newer device, gadgetfs is to be used.
*/
mobile.usb.mode = null;
/* To be changed by the author, though those may or may work with any device. */
# Google # Google
mobile.usb.idVendor = "18D1"; mobile.usb.idVendor = "18D1";
# "Nexus 4" # "Nexus 4"
mobile.usb.idProduct = "D001"; mobile.usb.idProduct = "D001";
mobile.usb.gadgetfs.functions = {
rndis = "gsi.rndis";
};
} }