From 393c5b6a911619564573f791edeff146b53f7a6a Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 29 May 2024 19:49:31 +0100 Subject: [PATCH] fix screen tearing --- hosts/sparky/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/sparky/default.nix b/hosts/sparky/default.nix index 3ce6bf3..697cbb4 100644 --- a/hosts/sparky/default.nix +++ b/hosts/sparky/default.nix @@ -37,6 +37,7 @@ in timeout = 3; }; }; + boot.kernelParams = [ "i915.enable_psr=0" ]; networking = { hostName = "sparky"; @@ -44,12 +45,18 @@ in enableIPv6 = false; }; - services.libinput.enable = true; services.displayManager.defaultSession = "cinnamon"; + services.libinput.enable = true; services.xserver = { enable = true; + videoDrivers = [ "modesetting" ]; displayManager.lightdm.enable = true; + exportConfiguration = true; + deviceSection = '' + Option "DRI" "2" + Option "TearFree" "true" + ''; desktopManager = { cinnamon.enable = true; };