2023-11-04 11:20:19 +01:00
|
|
|
|
{ lib, pkgs, ... }:
|
2023-02-26 20:08:39 +01:00
|
|
|
|
{
|
|
|
|
|
hardware.trackpoint = {
|
|
|
|
|
enable = true;
|
|
|
|
|
sensitivity = 230;
|
|
|
|
|
speed = 170;
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-02 20:34:42 +01:00
|
|
|
|
# Ensure that trackpoint mouse buttons work after suspend without having
|
|
|
|
|
# to touch the trackpoint first
|
|
|
|
|
powerManagement = {
|
|
|
|
|
powerDownCommands = ''
|
|
|
|
|
modprobe -r psmouse
|
|
|
|
|
'';
|
|
|
|
|
resumeCommands = ''
|
|
|
|
|
modprobe psmouse
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-26 20:08:39 +01:00
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
2023-11-04 11:20:19 +01:00
|
|
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "i915" ];
|
2023-02-26 20:08:39 +01:00
|
|
|
|
hardware.opengl = {
|
|
|
|
|
enable = true;
|
2023-11-04 11:20:19 +01:00
|
|
|
|
# driSupport = true;
|
|
|
|
|
# driSupport32Bit = true;
|
|
|
|
|
};
|
|
|
|
|
environment.variables = {
|
|
|
|
|
VDPAU_DRIVER = "va_gl";
|
2023-02-26 20:08:39 +01:00
|
|
|
|
};
|
2023-11-04 11:20:19 +01:00
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
|
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
intel-media-driver
|
|
|
|
|
];
|
2023-02-26 20:08:39 +01:00
|
|
|
|
|
|
|
|
|
console = {
|
2023-11-04 11:20:19 +01:00
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
keyMap = "de";
|
2023-02-26 20:08:39 +01:00
|
|
|
|
};
|
2023-11-04 11:20:19 +01:00
|
|
|
|
|
|
|
|
|
boot.kernelParams = [
|
|
|
|
|
# Disable ’Panel Self Refresh’. Fixes random freezes.
|
|
|
|
|
"i915.enable_psr=0"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
2023-02-26 20:08:39 +01:00
|
|
|
|
}
|