maybe fix suspend

This commit is contained in:
nora 2024-09-08 10:23:47 +02:00
parent 259be1d9db
commit af8f9d0342

View file

@ -89,6 +89,13 @@ in
}; };
}; };
# For hibernate:
# https://www.reddit.com/r/hyprland/comments/1cyb0h7/hibernate_on_nvidia/
boot.extraModprobeConfig = ''
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_TemporaryFilePath=/var/tmp
'';
boot.kernelPackages = pkgs.linuxPackages_6_6; boot.kernelPackages = pkgs.linuxPackages_6_6;
boot.kernel.sysctl = { boot.kernel.sysctl = {
@ -140,6 +147,8 @@ in
# https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826 # https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826
modesetting.enable = true; modesetting.enable = true;
open = true; open = true;
# For suspend/hibernate
powerManagement.enable = true;
}; };
hardware.graphics = { hardware.graphics = {