mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
maybe fix suspend
This commit is contained in:
parent
259be1d9db
commit
af8f9d0342
1 changed files with 9 additions and 0 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue