mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
set up swayidle
This commit is contained in:
parent
89604624c9
commit
82a05531c3
5 changed files with 97 additions and 34 deletions
|
@ -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; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue