🐛 fix hibernate not working

This commit is contained in:
Moritz Böhme 2022-04-05 11:11:08 +02:00
parent 8588090542
commit 82838351bd
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5
2 changed files with 5 additions and 1 deletions

View file

@ -49,6 +49,10 @@
}; };
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
console.keyMap = "de";
# needed for enabling hibernation
security.protectKernelImage = false;
# Powersaving # Powersaving
services.tlp.enable = true; services.tlp.enable = true;

View file

@ -6,7 +6,7 @@
# NOTE Was removed on nixpkgs-unstable because it doesn't do anything # NOTE Was removed on nixpkgs-unstable because it doesn't do anything
# security.hideProcessInformation = true; # security.hideProcessInformation = true;
# Prevent replacing the running kernel w/o reboot # Prevent replacing the running kernel w/o reboot
security.protectKernelImage = true; security.protectKernelImage = lib.mkDefault true;
# tmpfs = /tmp is mounted in ram. Doing so makes temp file management speedy # tmpfs = /tmp is mounted in ram. Doing so makes temp file management speedy
# on ssd systems, and volatile! Because it's wiped on reboot. # on ssd systems, and volatile! Because it's wiped on reboot.