set up swayidle

This commit is contained in:
Rouven Seifert 2023-02-28 23:00:18 +01:00
parent 89604624c9
commit 82a05531c3
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 97 additions and 34 deletions

View file

@ -111,11 +111,14 @@
services.logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchDocked = "hybrid-sleep";
lidSwitchDocked = "suspend-then-hibernate";
lidSwitchExternalPower = "suspend";
extraConfig = ''
HandlePowerKey = ignore
'';
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=1h
HibernateDelaySec=3min
'';
environment.systemPackages = with pkgs; [