1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-18 00:49:41 +01:00
nixos-hardware/dell/xps/13-9310/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
];
# Necessary for audio.
# https://bbs.archlinux.org/viewtopic.php?pid=1933548#p1933548
hardware.firmware = [ pkgs.sof-firmware ];
# Confirmed necessary to get audio working as of 2020-11-13:
# https://bbs.archlinux.org/viewtopic.php?pid=1933643#p1933643
boot.extraModprobeConfig = ''
options snd-intel-dspcfg dsp_driver=1
'';
# Touchpad goes over i2c.
# Without this we get errors in dmesg on boot and hangs when shutting down.
boot.blacklistedKernelModules = [ "psmouse" ];
# TODO: Remove this once landed in kernel.
# Apply kernel patch for xps 9310 wifi bug.
# https://patchwork.kernel.org/project/linux-wireless/patch/1605121102-14352-1-git-send-email-kvalo@codeaurora.org/
boot.kernelPatches = [
{
name = "ath11k-qca6390-xps9310";
patch = builtins.fetchurl "https://patchwork.kernel.org/project/linux-wireless/patch/1605121102-14352-1-git-send-email-kvalo@codeaurora.org/raw/";
}
];
# Allows for updating firmware via `fwupdmgr`.
# services.fwupd.enable = true;
}