From 82838351bd70abb86e4449cf8faf58600ad6c127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Tue, 5 Apr 2022 11:11:08 +0200 Subject: [PATCH] :bug: fix hibernate not working --- hosts/nixos-laptop/default.nix | 4 ++++ modules/security.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/nixos-laptop/default.nix b/hosts/nixos-laptop/default.nix index 93be824..776b77e 100644 --- a/hosts/nixos-laptop/default.nix +++ b/hosts/nixos-laptop/default.nix @@ -49,6 +49,10 @@ }; time.timeZone = "Europe/Berlin"; + console.keyMap = "de"; + + # needed for enabling hibernation + security.protectKernelImage = false; # Powersaving services.tlp.enable = true; diff --git a/modules/security.nix b/modules/security.nix index a00f632..26e16f4 100644 --- a/modules/security.nix +++ b/modules/security.nix @@ -6,7 +6,7 @@ # NOTE Was removed on nixpkgs-unstable because it doesn't do anything # security.hideProcessInformation = true; # 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 # on ssd systems, and volatile! Because it's wiped on reboot.