From c793059fa10ad72e1d5a19e977c03ef22e7434a1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 26 Jun 2022 12:53:31 +0200 Subject: Luna: Ignore power button short-press --- hosts/luna/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix index c63c041..aeef70f 100644 --- a/hosts/luna/default.nix +++ b/hosts/luna/default.nix @@ -13,6 +13,10 @@ # Configure keymap in X11 xserver.layout = "gb"; fstrim.enable = true; + logind.extraConfig = '' + # don’t shutdown when power button is short-pressed + HandlePowerKey=ignore + ''; }; # Pick only one of the below networking options. -- cgit 1.4.1