mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
fix: nvidia crash on desktop
This commit is contained in:
parent
53be67fe0f
commit
d0e1d787d0
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
_: {
|
{pkgsUnstable, ...}: {
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -12,4 +12,7 @@ _: {
|
||||||
|
|
||||||
# Avoid nvidia driver from crashing the system
|
# Avoid nvidia driver from crashing the system
|
||||||
boot.kernelParams = ["pcie_aspm=off"];
|
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
|
||||||
|
boot.kernelPackages = pkgsUnstable.linuxPackages_latest;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue