about summary refs log tree commit diff
path: root/hosts/luna
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-26 12:53:31 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-26 12:53:31 +0200
commitc793059fa10ad72e1d5a19e977c03ef22e7434a1 (patch)
treec7ad2091384c8db6945ca491ea21f1510502d2fb /hosts/luna
parentAdd luna host (diff)
downloadnixos-config-c793059fa10ad72e1d5a19e977c03ef22e7434a1.tar.gz
nixos-config-c793059fa10ad72e1d5a19e977c03ef22e7434a1.tar.bz2
nixos-config-c793059fa10ad72e1d5a19e977c03ef22e7434a1.zip
Luna: Ignore power button short-press
Diffstat (limited to 'hosts/luna')
-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.