mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
set up hibernate
This commit is contained in:
parent
d2b548cac2
commit
89604624c9
3 changed files with 25 additions and 8 deletions
|
@ -108,6 +108,15 @@
|
|||
user = "libvirtd";
|
||||
};
|
||||
};
|
||||
|
||||
services.logind = {
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
lidSwitchDocked = "hybrid-sleep";
|
||||
lidSwitchExternalPower = "suspend";
|
||||
};
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=1h
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue