From 549fdc8f8df77a78e698050d5daf285171e1dce5 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 19 Nov 2023 17:26:16 +0100 Subject: [PATCH] Disable power button shutdown --- hosts/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index cce9cbf..da1445b 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -29,6 +29,11 @@ # programs.ssh.startAgent = true; + services.logind.extraConfig = '' + # don’t shutdown when power button is short-pressed + HandlePowerKey=ignore + ''; + # Enable the KDE Plasma Desktop Environment. services.xserver.displayManager.sddm.enable = true; # Configure keymap in X11