summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/hw/x220.nix
blob: 980c2c9aa5cd32b186ecd1608a21fcb6ac8a48d5 (plain)
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
{ config, lib, pkgs, ... }:

{
  networking.wireless.enable = lib.mkDefault true;

  hardware.enableRedistributableFirmware = true;

  hardware.cpu.intel.updateMicrocode = true;

  hardware.opengl.enable = true;

  services.tlp.enable = true;

  boot = {
    kernelModules = [ "kvm-intel" "acpi_call" "tpm-rng" ];
    kernelParams = [ "acpi_backlight=none" ];
  };

  hardware.opengl.extraPackages = [
    pkgs.vaapiIntel
    pkgs.vaapiVdpau
  ];

  services.xserver = {
    videoDriver = "intel";
  };
}