fix: update kernel and nvidia

This commit is contained in:
Nickolaj Jepsen 2025-02-26 22:39:09 +01:00
parent 97b95f91ac
commit 4a5a8d3ba6

View file

@ -1,4 +1,4 @@
{pkgsUnstable, ...}: { {pkgs, config, ...}: {
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
}; };
@ -10,9 +10,7 @@
nvidiaSettings = true; nvidiaSettings = true;
}; };
# Avoid nvidia driver from crashing the system
boot.kernelParams = ["pcie_aspm=off"];
# To fix https://forums.developer.nvidia.com/t/ubuntu-24-04-unable-to-change-power-state-from-d3cold-to-d0-device-inaccessible/304459 # To fix https://forums.developer.nvidia.com/t/ubuntu-24-04-unable-to-change-power-state-from-d3cold-to-d0-device-inaccessible/304459
boot.kernelPackages = pkgsUnstable.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_6_12;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
} }