{ lib, pkgs, ... }: with lib.oc.plist; {
  oceanix.opencore.settings.Kernel = {
    Add = {
      # "AirportItlwm.kext".Enabled = true;
      "itlwm.kext".Enabled = true;
      "AppleALC.kext".Enabled = true;
      "BrightnessKeys.kext".Enabled = true;
      "ECEnabler.kext".Enabled = true;
      "IntelBluetoothFirmware.kext".Enabled = true;
      "IntelBluetoothInjector.kext" = { Enabled = true; MaxKernel = "20.99.9"; };
      "IntelBTPatcher.kext".Enabled = true;
      "BlueToolFixup.kext" = { Enabled = true; MinKernel = "21.00.0"; };
      "IntelMausi.kext".Enabled = true;
      "Lilu.kext".Enabled = true;
      "NVMeFix.kext".Enabled = true;
      "SMCBatteryManager.kext".Enabled = true;
      "SMCProcessor.kext".Enabled = true;
      "SMCSuperIO.kext".Enabled = true;
      "USBToolBox.kext".Enabled = true;
      # "UTBDefault.kext".Enabled = true;
      "UTBMap.kext".Enabled = true;
      "RTCMemoryFixup.kext".Enabled = true;
      "VirtualSMC.kext".Enabled = true;
      "VoodooI2C.kext".Enabled = true;
      "VoodooI2CHID.kext".Enabled = true;
      "VoodooI2CSynaptics.kext".Enabled = true;
      "VoodooPS2Controller.kext".Enabled = true;
      "WhateverGreen.kext".Enabled = true;
    };

    # Not used and disabled in sample.plist
    Block = [ ];
    Force = [ ];
    Patch = [ ];

    # i7-10710U CPU patching
    Emulate = {
      Cpuid1Data = mkData "7AYIAAAAAAAAAAAAAAAAAA==";
      Cpuid1Mask = mkData "/////wAAAAAAAAAAAAAAAA==";
    };

    Quirks = {
      AppleXcpmCfgLock = true;
      CustomSMBIOSGuid = false;
      # Not needed because we already disabled VT-d
      DisableIoMapper = false;
      PanicNoKextDump = true;
      PowerTimeoutKernelPanic = true;
      # Don't enable on Big Sur
      XhciPortLimit = false;
    };
  };
}
