feat: suspend on power button press

This commit is contained in:
mandlm 2022-06-26 16:31:56 +02:00
parent c14497001a
commit 17c80b0a5a
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -24,6 +24,14 @@
logEvents = true;
};
services.logind = {
lidSwitch = "suspend";
lidSwitchExternalPower = "ignore";
extraConfig = ''
HandlePowerKey=suspend
'';
};
services.xserver = {
enable = true;
windowManager.i3.enable = true;