about summary refs log tree commit diff
path: root/profiles/hardware/xps9300.nix
blob: 72a8b5ec4a1a031de1e1cf228bfb60ef8d309a7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, pkgs, ... }:
{
  imports = [
    ./intel.nix
  ];

  boot.kernelParams = [
    "mem_sleep_default=deep"
  ];

  # Touchpad goes over i2c, and the psmouse module interferes with it
  boot.blacklistedKernelModules = [ "psmouse" ];

  # Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
  hardware.enableRedistributableFirmware = true;

  networking.wireless.iwd.enable = true;
  hardware.bluetooth.enable = true;
  services.blueman.enable = true;

  boot.initrd.kernelModules = [ "i915" "acpi_call" ];

  environment.variables = {
    VDPAU_DRIVER = "va_gl";
  };

  hardware.opengl.extraPackages = with pkgs; [
    vaapiIntel
    libvdpau-va-gl
    intel-media-driver
  ];

  boot = {
    extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
  };
}