about summary refs log tree commit diff
path: root/hosts/luna/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/luna/default.nix')
-rw-r--r--hosts/luna/default.nix4
1 files changed, 4 insertions, 0 deletions
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.