1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/modules/hardware-qualcomm.nix

35 lines
702 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
2018-07-02 00:58:30 +03:00
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";
};
};
2018-07-02 00:58:30 +03:00
config = mkMerge [
{
mobile = mkIf cfg.qualcomm-msm8939.enable {
system.platform = "aarch64-linux";
};
}
{
mobile = mkIf cfg.qualcomm-apq8064-1aa.enable {
system.platform = "armv7a-linux";
};
}
];
}