From 593a8471ae49878c322d302abf4ee8a3735abd47 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Wed, 3 Aug 2022 19:43:39 +0100 Subject: [PATCH] Fix screen tearing --- hosts/pingbox/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/pingbox/configuration.nix b/hosts/pingbox/configuration.nix index c1df13a..5d7ecda 100644 --- a/hosts/pingbox/configuration.nix +++ b/hosts/pingbox/configuration.nix @@ -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;