Enable suspend-then-hybernate
This commit is contained in:
parent
af02cdbd15
commit
e6697fe6d5
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||||||
|
systemd.sleep.extraConfig = ''
|
||||||
|
HybernateDelaySec=30m
|
||||||
|
SuspendState=mem
|
||||||
|
'';
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./btrbk.nix
|
./btrbk.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./egpu.nix
|
# ./egpu.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue