Fix screen tearing

This commit is contained in:
2022-08-03 19:43:39 +01:00
parent 2bb96b280b
commit 593a8471ae

View File

@@ -3,6 +3,7 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {
@@ -17,7 +18,7 @@
boot.kernelParams = ["nvme.noacpi=1"]; boot.kernelParams = ["nvme.noacpi=1"];
hardware.acpilight.enable = true; hardware.acpilight.enable = lib.mkDefault true;
networking = { networking = {
hostName = "pingbox"; hostName = "pingbox";
@@ -37,6 +38,12 @@
xserver = { xserver = {
dpi = 144; dpi = 144;
videoDrivers = ["intel"];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
libinput.touchpad = { libinput.touchpad = {
naturalScrolling = true; naturalScrolling = true;
horizontalScrolling = false; horizontalScrolling = false;