mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-16 03:32:02 +03:00
25 lines
465 B
Nix
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
|
|
'';
|
|
};
|
|
}
|