From 40de63cb4212cacee33d133c0c1d3c409681e15b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 6 Jul 2025 22:41:32 +0200 Subject: [PATCH] Install nvidia drivers --- configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configuration.nix b/configuration.nix index fac8fe5..a1cb241 100755 --- a/configuration.nix +++ b/configuration.nix @@ -5,6 +5,25 @@ { config, pkgs, ... }: { + + + # Enable OpenGL + hardware.graphics.enable = true; + + # Load nvidia driver for Xorg and Wayland + services.xserver.videoDrivers = ["nvidia"]; + + hardware.nvidia = { + modesetting.enable = true; + + powerManagement.enable = false; + powerManagement.finegrained = false; + + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix