2023-09-09 23:27:29 +03:00
|
|
|
inputs: { config, pkgs, lib, ... }: {
|
|
|
|
# NVIDIA config
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
2024-06-26 09:11:13 +03:00
|
|
|
# driSupport = true;
|
2023-09-09 23:27:29 +03:00
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nvidia = {
|
2024-02-28 23:20:48 +02:00
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
2023-09-09 23:27:29 +03:00
|
|
|
modesetting.enable = true;
|
|
|
|
powerManagement.enable = true;
|
2024-02-28 23:20:48 +02:00
|
|
|
#open = true;
|
2023-09-09 23:27:29 +03:00
|
|
|
nvidiaSettings = true;
|
2024-11-11 11:26:38 +02:00
|
|
|
open = true;
|
2023-09-09 23:27:29 +03:00
|
|
|
};
|
|
|
|
};
|
2023-09-19 17:39:50 +03:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = [ "nvidia" ];
|
|
|
|
extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
|
|
|
};
|
2024-02-28 23:20:48 +02:00
|
|
|
}
|