power key should not destroy my work :|

This commit is contained in:
Emmet
2025-06-17 15:51:06 -05:00
parent b716a1920f
commit 5c58bc7eb6

View File

@ -11,6 +11,12 @@ in
};
config = lib.mkIf cfg.enable {
# Power key should not shut off computer by defaultPower key shuts of
services.logind.extraConfig = ''
# Suspend when power button is pressed
HandlePowerKey=suspend
'';
# Hyprland
programs = {
hyprland = {