1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-08 04:38:11 +03:00
mobile-nixos/modules/quirks-qualcomm.nix

28 lines
510 B
Nix
Raw Normal View History

{ 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 &
'';
};
};
}