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

25 lines
465 B
Nix
Raw Normal View History

{
2018-06-13 04:47:00 +03:00
pkgs,
lib,
2018-06-13 04:47:00 +03:00
...
}:
let
config = (lib.importJSON ../postmarketOS-devices.json).asus-z00t;
in
config // {
name = config.pm_name;
kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
2018-06-13 04:47:00 +03:00
stage-1 = {
fb_modes = ./fb.modes;
2018-06-13 04:47:00 +03:00
packages = with pkgs; [
strace
msm-fb-refresher
];
initFramebuffer = ''
msm-fb-refresher --loop &
echo 10 > /sys/class/leds/lcd-backlight/brightness
'';
};
}