nixos/hosts/desktop/nvidia.nix

23 lines
536 B
Nix
Raw Normal View History

2025-03-02 23:11:53 +01:00
{
pkgs,
config,
...
}: {
2025-03-10 22:30:52 +01:00
hardware = {
graphics = {
enable = true;
};
nvidia = {
open = true;
modesetting.enable = true;
powerManagement.enable = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
2025-02-20 14:09:12 +01:00
};
services.xserver.videoDrivers = ["nvidia"];
2025-02-20 22:50:06 +01:00
2025-02-26 19:21:40 +01:00
# To fix https://forums.developer.nvidia.com/t/ubuntu-24-04-unable-to-change-power-state-from-d3cold-to-d0-device-inaccessible/304459
2025-02-26 22:39:09 +01:00
boot.kernelPackages = pkgs.linuxPackages_6_12;
2025-02-20 14:09:12 +01:00
}