feat(sydpc): Sleep on power button

This commit is contained in:
2025-09-06 08:04:12 -06:00
parent c5b32b9acc
commit f8f9985bd8

View File

@@ -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;