1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 03:32:02 +03:00
mobile-nixos/devices/asus-z00t/default.nix
2018-06-13 02:06:24 +00:00

25 lines
465 B
Nix

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