From cd12dbd5d814f809dfabc815a76218eae1c607a1 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 27 Jun 2022 20:49:00 +0200 Subject: machines/shiki: ignore short press on power button --- machines/profpatsch/shiki.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'machines') diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index fdb595f1..ca62cf85 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -356,10 +356,17 @@ in { # Automount services.udisks2.enable = true; - services.logind.extraConfig = '' + services.logind.extraConfig = lib.generators.toKeyValue {} { + + # I don’t want the machine to go off immediately + # when I accidentally touch the power button. + HandlePowerKey = "ignore"; + HandlePowerKeyLongPress = "poweroff"; + # want to be able to listen to music while laptop closed - LidSwitchIgnoreInhibited=no - ''; + LidSwitchIgnoreInhibited = "no"; + + }; # TMP -- cgit 1.4.1