diff --git a/apple/t2/default.nix b/apple/t2/default.nix index 1b40d760..9ae638ee 100644 --- a/apple/t2/default.nix +++ b/apple/t2/default.nix @@ -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 ]; diff --git a/apple/t2/pkgs/linux-t2/generic.nix b/apple/t2/pkgs/linux-t2/generic.nix index c03565c5..39f34f1e 100644 --- a/apple/t2/pkgs/linux-t2/generic.nix +++ b/apple/t2/pkgs/linux-t2/generic.nix @@ -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 = [