Update OS: Fix hardware.opengl -> hardware.graphics migration
All checks were successful
check / check (push) Successful in 28s

This commit is contained in:
Florian RICHER 2024-06-21 21:59:22 +02:00
parent 064530792a
commit 31c5516a9f

View file

@ -11,17 +11,16 @@ in
'';
};
config = mkIf cfg.enable {
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
# Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
hardware = {
graphics = {
enable = true;
enable32Bit = true;
};
nvidia = {
# Modesetting is required.
modesetting.enable = true;
@ -48,4 +47,5 @@ in
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
};
};
}