apple/t2: sort and add missing kernel configs

Signed-off-by: Sophie Cheung <git@soopy.moe>
This commit is contained in:
Sophie Cheung committed 2026-10-07 20:05:20 +08:00
1 parent 701eb9f269
commit bd9987b748
2 files changed
+20 -5

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ in
if t2Cfg.kernelChannel == "stable" then ./pkgs/linux-t2 else ./pkgs/linux-t2/latest.nix
) { }
);
boot.initrd.kernelModules = [ "apple-bce" ];
boot.initrd.kernelModules = [ "t2bce-vhci" ];
services.udev.packages = [ audioFilesUdevRules ];
+19 -4
View File
@@ -33,22 +33,37 @@ buildLinux (
};
structuredExtraConfig = with lib.kernel; {
APPLE_BCE = module;
T2BCE_CORE = module;
T2BCE_VHCI = module;
T2BCE_AUDIO = module;
T2BCE_AVE = module;
APPLE_GMUX = module;
APFS_FS = module;
BRCMFMAC = module;
BT_BCM = module;
BT_HCIBCM4377 = module;
BT_HCIUART_BCM = yes;
BT_HCIUART = module;
BT_HCIUART_BCM = yes;
DRM_APPLETBDRM = module;
HID_APPLE = module;
HID_APPLETB_BL = module;
HID_APPLETB_KBD = module;
HID_APPLE = module;
HID_MAGICMOUSE = module;
DRM_APPLETBDRM = module;
HID_SENSOR_ALS = module;
SENSORS_APPLESMC = module;
SND_PCM = module;
STAGING = yes;
# required for t2bce_ave
I2C = yes;
MEDIA_SUPPORT = yes;
MEDIA_CAMERA_SUPPORT = yes;
MEDIA_ANALOG_TV_SUPPORT = yes;
MEDIA_DIGITAL_TV_SUPPORT = yes;
MEDIA_RADIO_SUPPORT = yes;
MEDIA_SDR_SUPPORT = yes;
MEDIA_PLATFORM_SUPPORT = yes;
MEDIA_TEST_SUPPORT = yes;
};
kernelPatches = [