mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 02:43:24 +03:00
24 lines
465 B
Nix
24 lines
465 B
Nix
{ 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";
|
|
};
|
|
}
|
|
];
|
|
}
|