mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-01 03:32:26 +03:00
a3a4a44704
Regression: fb.modes isn't copied anymore
28 lines
510 B
Nix
28 lines
510 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.mobile.quirks.qualcomm;
|
|
in
|
|
{
|
|
options.mobile = {
|
|
quirks.qualcomm.msm-fb-refresher.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "Enables use of `msm-fb-refresher`.";
|
|
};
|
|
};
|
|
|
|
config.mobile.boot = mkIf cfg.msm-fb-refresher.enable {
|
|
stage-1 = {
|
|
extraUtils = with pkgs; [
|
|
msm-fb-refresher
|
|
];
|
|
initFramebuffer = ''
|
|
msm-fb-refresher --loop &
|
|
'';
|
|
};
|
|
};
|
|
}
|