2023-09-09 23:27:29 +03:00
|
|
|
inputs: { config, pkgs, lib, ... }: {
|
|
|
|
# NVIDIA config
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
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
|
|
|
}
|