1 { pkgs, lib, config, ... }:
8 nixpkgs.hostPlatform = {
9 system = "x86_64-linux";
10 config = "x86_64-unknown-linux-gnu";
13 boot.kernelModules = [ "kvm-intel" ];
14 # https://bugzilla.kernel.org/show_bug.cgi?id=110941
15 boot.initrd.availableKernelModules = [
23 boot.extraModulePackages = with config.boot.kernelPackages; [
28 hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
29 hardware.opengl.extraPackages = [
30 pkgs.intel-media-driver # LIBVA_DRIVER_NAME=iHD
31 # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
32 (if (versionOlder (versions.majorMinor version) "23.11") then pkgs.vaapiIntel else pkgs.intel-vaapi-driver)
37 services.upower.enable = true;
38 services.libinput.enable = mkDefault true;