From 5c58bc7eb68a598cc5303b0ad161cbd1cfb8501c Mon Sep 17 00:00:00 2001 From: Emmet Date: Tue, 17 Jun 2025 15:51:06 -0500 Subject: [PATCH] power key should not destroy my work :| --- modules/system/hyprland/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 = {