mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-11 07:02:41 +02:00
fix: systemd.sleep.extraConfig no longer has any effect
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user