about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/shiki.nix13
1 files changed, 10 insertions, 3 deletions
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