1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 02:43:24 +03:00

hardware: init mediatek with MT6785

This commit is contained in:
Samuel Dionne-Riel 2020-06-24 17:42:47 -04:00
parent 5b5cf641f8
commit 17f27ca78d
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkOption mkMerge mkIf types;
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
hardware.socs.mediatek-mt6785.enable = mkOption {
type = types.bool;
default = false;
description = "enable when SOC is Mediatek MT6785 (Helio G90)";
};
};
config = mkMerge [
{
mobile = mkIf cfg.mediatek-mt6785.enable {
system.system = "aarch64-linux";
};
}
];
}

View File

@ -9,6 +9,7 @@
./generated-filesystems.nix
./hardware-allwinner.nix
./hardware-generic.nix
./hardware-mediatek.nix
./hardware-qualcomm.nix
./hardware-ram.nix
./hardware-rockchip.nix