feat(sydpc): Sleep on power button
This commit is contained in:
@@ -58,12 +58,19 @@
|
|||||||
|
|
||||||
# Disable systemd-sleep. Let KDE or whatever dim the screen without
|
# Disable systemd-sleep. Let KDE or whatever dim the screen without
|
||||||
# suspending the computer.
|
# suspending the computer.
|
||||||
systemd.sleep.extraConfig = ''
|
# systemd.sleep.extraConfig = ''
|
||||||
AllowSuspend=no
|
# AllowSuspend=no
|
||||||
AllowHibernation=no
|
# AllowHibernation=no
|
||||||
AllowHybridSleep=no
|
# AllowHybridSleep=no
|
||||||
AllowSuspendThenHibernate=no
|
# AllowSuspendThenHibernate=no
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
|
# Make pressing the power button suspend the system.
|
||||||
|
services.logind = {
|
||||||
|
extraConfig = ''
|
||||||
|
HandlePowerKey=suspend
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
grub.enable = false;
|
grub.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user