diff --git a/modules/system/hyprland/default.nix b/modules/system/hyprland/default.nix index f53978a5..6cd33c69 100644 --- a/modules/system/hyprland/default.nix +++ b/modules/system/hyprland/default.nix @@ -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 = {