1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/modules/hardware-exynos.nix
2021-01-09 16:24:32 -05:00

25 lines
484 B
Nix

{ config, lib, pkgs, ... }:
let
inherit (lib) mkMerge mkOption mkIf types;
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
hardware.socs.exynos-7880.enable = mkOption {
type = types.bool;
default = false;
description = "enable when SOC is Exynos 7880";
};
};
config = mkMerge [
{
mobile = mkIf cfg.exynos-7880.enable {
system.system = "aarch64-linux";
quirks.fb-refresher.enable = true;
};
}
];
}