1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
mobile-nixos/modules/hardware-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

22 lines
422 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
hardware.socs.qualcomm-msm8939.enable = mkOption {
type = types.bool;
default = false;
description = "enable when SOC is msm8939";
};
};
config = {
# TODO : more generic than msm8939.enable.
mobile.quirks.qualcomm.msm-fb-refresher.enable = cfg.qualcomm-msm8939.enable;
};
}