1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/devices/asus-z00t/default.nix
Samuel Dionne-Riel 6095b623f6 Adds qemu-x86_64 device.
Network doesn't work :/
2018-06-17 20:55:34 -04:00

31 lines
902 B
Nix

{ config, lib, pkgs, ... }:
{
mobile.device.name = "asus-z00t";
mobile.device.info = (lib.importJSON ../postmarketOS-devices.json).asus-z00t // {
# TODO : make kernel part of options.
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
};
mobile.hardware = {
# This could also be pre-built option types?
soc = "qualcomm-msm8939";
# 3GB for the specific revision supported.
# When this will be actually used, this may be dropped to 2, and/or
# document all ram types as a list and work with min/max of those.
ram = 1024 * 3;
screen = {
width = 1080; height = 1920;
fb_modes = ./fb.modes;
};
};
mobile.system.type = "android-bootimg";
mobile.boot.stage-1 = {
extraUtils = with pkgs; [
strace
];
initFramebuffer = ''
echo 10 > /sys/class/leds/lcd-backlight/brightness
'';
};
}