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 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

35 lines
702 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
hardware.socs.qualcomm-apq8064-1aa.enable = mkOption {
type = types.bool;
default = false;
description = "enable when SOC is APQ80641AA";
};
hardware.socs.qualcomm-msm8939.enable = mkOption {
type = types.bool;
default = false;
description = "enable when SOC is msm8939";
};
};
config = mkMerge [
{
mobile = mkIf cfg.qualcomm-msm8939.enable {
system.platform = "aarch64-linux";
};
}
{
mobile = mkIf cfg.qualcomm-apq8064-1aa.enable {
system.platform = "armv7a-linux";
};
}
];
}