diff --git a/hosts/sydpc/configuration.nix b/hosts/sydpc/configuration.nix index 3de2b85..bed0afd 100644 --- a/hosts/sydpc/configuration.nix +++ b/hosts/sydpc/configuration.nix @@ -58,12 +58,19 @@ # Disable systemd-sleep. Let KDE or whatever dim the screen without # suspending the computer. - systemd.sleep.extraConfig = '' - AllowSuspend=no - AllowHibernation=no - AllowHybridSleep=no - AllowSuspendThenHibernate=no - ''; + # systemd.sleep.extraConfig = '' + # AllowSuspend=no + # AllowHibernation=no + # AllowHybridSleep=no + # AllowSuspendThenHibernate=no + # ''; + + # Make pressing the power button suspend the system. + services.logind = { + extraConfig = '' + HandlePowerKey=suspend + ''; + }; boot.loader = { grub.enable = false;