Update and Nvidia Suspend / Wake
This commit is contained in:
parent
29d6dd7a00
commit
0dd9177eca
3 changed files with 45 additions and 38 deletions
|
@ -13,6 +13,15 @@
|
|||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
boot.kernelParams = [
|
||||
# For VirtualBox to work
|
||||
# https://github.com/NixOS/nixpkgs/issues/363887
|
||||
"kvm.enable_virt_at_load=0"
|
||||
|
||||
# Hyrpland suspend / wakeup
|
||||
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/57749360-7043-4fc8-bf3c-b32f19637286";
|
||||
fsType = "ext4";
|
||||
|
@ -56,7 +65,7 @@
|
|||
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||
# of just the bare essentials.
|
||||
powerManagement.enable = false;
|
||||
powerManagement.enable = true;
|
||||
|
||||
# Fine-grained power management. Turns off GPU when not in use.
|
||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue