power: suspend on power button

This commit is contained in:
Leonardo Eugênio 2023-11-11 13:20:39 -03:00
parent c51f030d0a
commit 3094240717

View file

@ -144,6 +144,10 @@
};
security.sudo.wheelNeedsPassword = false;
services.logind.extraConfig = ''
HandlePowerKey=suspend
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave