fix: systemd.sleep.extraConfig no longer has any effect

This commit is contained in:
Ryan Yin
2026-03-16 17:31:46 +08:00
parent cface0caba
commit 57a868228c
+6 -6
View File
@@ -59,12 +59,12 @@
powerKeyLongPress = "poweroff"; powerKeyLongPress = "poweroff";
}; };
systemd.targets.sleep.enable = true; systemd.targets.sleep.enable = true;
systemd.sleep.extraConfig = '' systemd.sleep.settings.Sleep = {
AllowSuspend=yes AllowSuspend = "yes";
AllowHibernate=no AllowHibernate = "no";
AllowSuspendThenHibernate=no AllowSuspendThenHibernate = "no";
HibernateDelaySec=5min HibernateDelaySec = "5min";
''; };
# After adding this snippet, you need to restart the system for the touchbar to work. # After adding this snippet, you need to restart the system for the touchbar to work.
hardware.apple.touchBar = { hardware.apple.touchBar = {