1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-19 05:51:52 +03:00
mobile-nixos/modules/quirks-qualcomm.nix
Samuel Dionne-Riel 186b192e3c msm-fb-refresher: Now not used by default.
That is because I would prefer all software to *just work* with `msm`
framebuffer shenanigans.
2018-07-06 19:17:38 -04:00

31 lines
605 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`.
Use sparingly, it is better to patch software to flip buffers instead.
";
};
};
config.mobile.boot = mkIf cfg.msm-fb-refresher.enable {
stage-1 = {
extraUtils = with pkgs; [
msm-fb-refresher
];
initFramebuffer = ''
msm-fb-refresher --loop &
'';
};
};
}