2024-09-29 21:48:55 +00:00
|
|
|
{config, ...}: {
|
2024-11-24 20:30:04 +00:00
|
|
|
hardware.graphics.enable = true;
|
2024-09-29 21:48:55 +00:00
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
hardware.nvidia = {
|
2024-12-26 16:47:33 +00:00
|
|
|
open = false;
|
2024-09-29 21:48:55 +00:00
|
|
|
modesetting.enable = true;
|
2024-12-26 16:47:33 +00:00
|
|
|
powerManagement.enable = true;
|
2024-09-29 21:48:55 +00:00
|
|
|
nvidiaSettings = true;
|
2024-11-24 20:30:04 +00:00
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
2024-09-29 21:48:55 +00:00
|
|
|
};
|
2024-12-26 16:47:33 +00:00
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Nvidia/#suspendwakeup-issues
|
|
|
|
boot.kernelParams = ["nvidia.NVreg_PreserveVideoMemoryAllocations=1"];
|
2024-09-29 21:48:55 +00:00
|
|
|
}
|