1 { pkgs, lib, config, ... }:
9 nixpkgs.hostPlatform = {
10 system = "x86_64-linux";
11 config = "x86_64-unknown-linux-gnu";
14 boot.kernelModules = [ "kvm-intel" ];
15 # https://bugzilla.kernel.org/show_bug.cgi?id=110941
16 boot.initrd.availableKernelModules = [
23 # tp_smapi works on ThinkPads made before 2013. See compat table:
24 # https://www.thinkwiki.org/wiki/Tp_smapi#Model-specific_status
27 boot.extraModulePackages = with config.boot.kernelPackages; [
30 boot.kernelParams = [ "intel_pstate=no_hwp" ];
32 environment.systemPackages = [
36 hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
37 hardware.opengl.extraPackages = [
38 pkgs.intel-media-driver # LIBVA_DRIVER_NAME=iHD
39 # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
40 (if (versionOlder (versions.majorMinor version) "23.11") then pkgs.vaapiIntel else pkgs.intel-vaapi-driver)
44 hardware.trackpoint.enable = mkDefault true;
45 hardware.trackpoint.emulateWheel = mkDefault config.hardware.trackpoint.enable;
62 services.upower.enable = true;
63 services.libinput.enable = mkDefault true;
65 # No pstore backend available on this system.
66 systemd.services.mount-pstore.enable = false;