diff --git a/system/default.nix b/system/default.nix index 74a8a05f..39d9eafe 100644 --- a/system/default.nix +++ b/system/default.nix @@ -34,6 +34,12 @@ keyboard.qmk.enable = true; }; + services.logind.extraConfig = '' + # don't shutdown when power button is short-pressed + HandlePowerKey=suspend + HandlePowerKeyLongPress=poweroff + ''; + security.polkit.enable = true; # Allow unfree packages