xorg: reenable primeSync on nvidia and enable disableWhileTyping

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-05-28 12:45:57 +02:00
parent 556ecef190
commit 937479dbba
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -67,7 +67,10 @@ in {
defaultSession = "none+xmonad";
};
libinput.enable = true;
libinput = {
enable = true;
touchpad.disableWhileTyping = true;
};
};
hardware = {
@ -77,7 +80,7 @@ in {
}
(mkIf (cfg.gpu == "nvidia") {
services.xserver.videoDrivers = [ "nvidia" ];
# hardware.nvidia.modesetting.enable = mkIf cfg.nvidia.primeSync true;
hardware.nvidia.modesetting.enable = mkIf cfg.nvidia.primeSync true;
services.xserver.deviceSection = mkIf cfg.nvidia.primeSync ''
Option "Coolbits" "28"