From e6697fe6d5e6ecb600abed66073bf86cb0ef3e59 Mon Sep 17 00:00:00 2001 From: Aode Date: Sun, 12 Nov 2023 10:48:24 -0600 Subject: [PATCH] Enable suspend-then-hybernate --- desktop.nix | 6 ++++++ graystripe/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/desktop.nix b/desktop.nix index e35808d..b583fbc 100644 --- a/desktop.nix +++ b/desktop.nix @@ -1,6 +1,12 @@ { pkgs, lib, ... }: { + boot.kernelParams = [ "mem_sleep_default=deep" ]; + systemd.sleep.extraConfig = '' + HybernateDelaySec=30m + SuspendState=mem + ''; + # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; diff --git a/graystripe/default.nix b/graystripe/default.nix index 4685a46..8a0229c 100644 --- a/graystripe/default.nix +++ b/graystripe/default.nix @@ -10,7 +10,7 @@ # Include the results of the hardware scan. ./btrbk.nix ./hardware-configuration.nix - ./egpu.nix + # ./egpu.nix ./wireguard.nix ];