Compare commits

...

2 commits

Author SHA1 Message Date
fruchti e2e91e6924 Improve X270 hardware experience 2023-11-04 11:20:19 +01:00
fruchti 96729143fa Add udev rule for Glasgow 2023-11-04 11:20:02 +01:00
2 changed files with 25 additions and 5 deletions

View file

@ -33,6 +33,9 @@
# WCH-LinkE
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="8010", MODE="0660", GROUP="plugdev"
# Glasgow
SUBSYSTEM=="usb", ATTRS{idVendor}=="20b7", ATTRS{idProduct}=="9db1", MODE="0660", GROUP="plugdev"
# Shared V-USB VID:PID for use with various homebrew stuff
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0660", GROUP="plugdev"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE="0660", GROUP="plugdev"

View file

@ -1,4 +1,4 @@
{ ... }:
{ lib, pkgs, ... }:
{
hardware.trackpoint = {
enable = true;
@ -7,14 +7,31 @@
};
services.xserver.videoDrivers = [ "modesetting" ];
boot.initrd.kernelModules = [ "i915" ];
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
# driSupport = true;
# driSupport32Bit = true;
};
environment.variables = {
VDPAU_DRIVER = "va_gl";
};
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
];
console = {
font = "Lat2-Terminus16";
keyMap = "de";
};
boot.kernelParams = [
# Disable Panel Self Refresh. Fixes random freezes.
"i915.enable_psr=0"
];
hardware.cpu.intel.updateMicrocode = true;
}