From 4aaac6a1dca40a630f75860fc60fd866df2b4791 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 26 Feb 2023 18:02:09 -0800 Subject: [PATCH] fix: added nvidia drivers to try and fix screen tears --- hosts/desktop/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 128ed9c..73e9834 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -1,11 +1,17 @@ -{ ... }: +{ config, ... }: { imports = [ ./hardware-configuration.nix ]; + + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.opengl.enable = true; + # Optionally, you may need to select the appropriate driver version for your specific GPU. + hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; + hardware.bluetooth.enable = true; time.hardwareClockInLocalTime = true;