1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

Merge pull request #341 from mitchmindtree/xps-9310-rm-kernel-patches

xps-9310: Remove upstreamed kernel patches with custom config
This commit is contained in:
Jörg Thalheim 2021-12-02 10:22:10 +00:00 committed by GitHub
commit 4c9f07277b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,21 +9,8 @@
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
hardware.enableRedistributableFirmware = true;
# Requires at least 5.12 for working wi-fi and bluetooth.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
# TODO: upstream this to NixOS
boot.kernelPatches = [{
name = "enable-qca6390-bluetooth";
patch = null;
extraConfig = ''
BT_QCA m
BT_HCIUART m
BT_HCIUART_QCA y
BT_HCIUART_SERDEV y
SERIAL_DEV_BUS y
SERIAL_DEV_CTRL_TTYPORT y
'';
}];
boot.kernelModules = [ "btqca" "hci_qca" "hci_uart" ];
# Touchpad goes over i2c.
# Without this we get errors in dmesg on boot and hangs when shutting down.