1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-13 12:35:48 +03:00
mobile-nixos/modules/hardware-exynos.nix
2023-03-15 01:35:05 -04:00

25 lines
494 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 = lib.mdDoc "enable when SOC is Exynos 7880";
};
};
config = mkMerge [
{
mobile = mkIf cfg.exynos-7880.enable {
system.system = "aarch64-linux";
quirks.fb-refresher.enable = true;
};
}
];
}