From 937479dbba78e8d5047b3a09a929f21fb39eff7e Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sun, 28 May 2023 12:45:57 +0200 Subject: [PATCH] xorg: reenable primeSync on nvidia and enable `disableWhileTyping` Signed-off-by: Magic_RB --- nixos/modules/xserver/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/modules/xserver/default.nix b/nixos/modules/xserver/default.nix index f084166..2111897 100644 --- a/nixos/modules/xserver/default.nix +++ b/nixos/modules/xserver/default.nix @@ -67,7 +67,10 @@ in { defaultSession = "none+xmonad"; }; - libinput.enable = true; + libinput = { + enable = true; + touchpad.disableWhileTyping = true; + }; }; hardware = { @@ -76,8 +79,8 @@ in { }; } (mkIf (cfg.gpu == "nvidia") { - services.xserver.videoDrivers = ["nvidia"]; - # hardware.nvidia.modesetting.enable = mkIf cfg.nvidia.primeSync true; + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia.modesetting.enable = mkIf cfg.nvidia.primeSync true; services.xserver.deviceSection = mkIf cfg.nvidia.primeSync '' Option "Coolbits" "28"