X270: Use nixos-hardware, update graphics option
This commit is contained in:
parent
82b0e8f4ee
commit
b8bd5a3f21
|
@ -1,38 +1,19 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
<nixos-hardware/lenovo/thinkpad/x270>
|
||||||
|
];
|
||||||
hardware.trackpoint = {
|
hardware.trackpoint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sensitivity = 230;
|
sensitivity = 230;
|
||||||
speed = 170;
|
speed = 170;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ensure that trackpoint mouse buttons work after suspend without having
|
hardware.graphics = {
|
||||||
# to touch the trackpoint first
|
|
||||||
powerManagement = {
|
|
||||||
powerDownCommands = ''
|
|
||||||
modprobe -r psmouse
|
|
||||||
'';
|
|
||||||
resumeCommands = ''
|
|
||||||
modprobe psmouse
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "modesetting" ];
|
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "i915" ];
|
|
||||||
hardware.opengl = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
# driSupport = true;
|
# driSupport = true;
|
||||||
# driSupport32Bit = 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 = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
|
|
Loading…
Reference in a new issue