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