Update OS: Fix hardware.opengl -> hardware.graphics migration
All checks were successful
check / check (push) Successful in 28s
All checks were successful
check / check (push) Successful in 28s
This commit is contained in:
parent
064530792a
commit
31c5516a9f
1 changed files with 29 additions and 29 deletions
|
@ -11,41 +11,41 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Enable OpenGL
|
|
||||||
hardware.opengl = {
|
|
||||||
enable = true;
|
|
||||||
driSupport = true;
|
|
||||||
driSupport32Bit = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware = {
|
||||||
# Modesetting is required.
|
graphics = {
|
||||||
modesetting.enable = true;
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
nvidia = {
|
||||||
powerManagement.enable = false;
|
# Modesetting is required.
|
||||||
# Fine-grained power management. Turns off GPU when not in use.
|
modesetting.enable = true;
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
|
||||||
powerManagement.finegrained = false;
|
|
||||||
|
|
||||||
# Use the NVidia open source kernel module (not to be confused with the
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
# independent third-party "nouveau" open source driver).
|
powerManagement.enable = false;
|
||||||
# Support is limited to the Turing and later architectures. Full list of
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
# supported GPUs is at:
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
powerManagement.finegrained = false;
|
||||||
# Only available from driver 515.43.04+
|
|
||||||
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
|
||||||
open = false;
|
|
||||||
|
|
||||||
# Enable the Nvidia settings menu,
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
# accessible via `nvidia-settings`.
|
# independent third-party "nouveau" open source driver).
|
||||||
nvidiaSettings = true;
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
|
open = false;
|
||||||
|
|
||||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
# Enable the Nvidia settings menu,
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue