1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-01 11:43:55 +03:00
mobile-nixos/modules/quirks-qualcomm.nix
Samuel Dionne-Riel a3a4a44704 WIP progress with configuration system.
Regression: fb.modes isn't copied anymore
2018-06-17 00:43:19 +00:00

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