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