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:
parent
5b5cf641f8
commit
17f27ca78d
23
modules/hardware-mediatek.nix
Normal file
23
modules/hardware-mediatek.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user