Fix screen tearing
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user