Enable suspend-then-hybernate

This commit is contained in:
Aode 2023-11-12 10:48:24 -06:00
parent af02cdbd15
commit e6697fe6d5
2 changed files with 7 additions and 1 deletions

View file

@ -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";

View file

@ -10,7 +10,7 @@
# Include the results of the hardware scan.
./btrbk.nix
./hardware-configuration.nix
./egpu.nix
# ./egpu.nix
./wireguard.nix
];