feat: suspend on power button press

main
mandlm 2022-06-26 16:31:56 +02:00
parent c14497001a
commit 17c80b0a5a
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 8 additions and 0 deletions

View File

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