mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
25 lines
495 B
Nix
25 lines
495 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf mkMerge mkOption types;
|
|
cfg = config.mobile.hardware.socs;
|
|
in
|
|
{
|
|
options.mobile = {
|
|
hardware.socs.allwinner-r18.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "enable when SOC is Allwinner-R18";
|
|
};
|
|
};
|
|
|
|
config = mkMerge [
|
|
{
|
|
mobile = mkIf cfg.allwinner-r18.enable {
|
|
system.system = "aarch64-linux";
|
|
quirks.u-boot.soc.family = "allwinner";
|
|
};
|
|
}
|
|
];
|
|
}
|