mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-16 03:32:02 +03:00
razer-cheryl2: Minimum edits to device description
This commit is contained in:
parent
0fe99a919a
commit
d517a14b24
@ -1,9 +1,5 @@
|
||||
{ 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.identity = {
|
||||
@ -13,14 +9,14 @@
|
||||
|
||||
mobile.hardware = {
|
||||
soc = "qualcomm-sdm845";
|
||||
ram = 1024 * 0/* (in MB) To be filled by the user */;
|
||||
ram = 1024 * 8;
|
||||
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 = {
|
||||
kernel.package = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
||||
kernel.package = pkgs.callPackage ./kernel { };
|
||||
};
|
||||
|
||||
mobile.system.android = {
|
||||
@ -60,16 +56,13 @@
|
||||
|
||||
mobile.system.type = "android";
|
||||
|
||||
/* The usb mode could not be detected.
|
||||
* 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. */
|
||||
mobile.usb.mode = "gadgetfs";
|
||||
# Google
|
||||
mobile.usb.idVendor = "18D1";
|
||||
# "Nexus 4"
|
||||
mobile.usb.idProduct = "D001";
|
||||
|
||||
mobile.usb.gadgetfs.functions = {
|
||||
rndis = "gsi.rndis";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user