diff --git a/system/configuration.nix b/system/configuration.nix index 6d6a85c..ad9c55d 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -144,6 +144,10 @@ }; security.sudo.wheelNeedsPassword = false; + services.logind.extraConfig = '' + HandlePowerKey=suspend + ''; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave