From e4b3b506570d4b523b9f4a1ba4118acc44593c10 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 22 Nov 2021 20:54:18 +0100 Subject: [PATCH] add kernel parameter for better suspend --- hardware/xps5530/hardware-configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/xps5530/hardware-configuration.nix b/hardware/xps5530/hardware-configuration.nix index 78ef8d2..257dfd9 100644 --- a/hardware/xps5530/hardware-configuration.nix +++ b/hardware/xps5530/hardware-configuration.nix @@ -12,6 +12,10 @@ boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernelParams = [ + "mem_sleep_default=deep" + ] + boot.initrd.luks.devices."cryptlvm".device = "/dev/sda2"; fileSystems."/" = { device = "/dev/disk/by-label/nixos";