mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
fix: systemd.sleep.extraConfig no longer has any effect
This commit is contained in:
@@ -59,12 +59,12 @@
|
||||
powerKeyLongPress = "poweroff";
|
||||
};
|
||||
systemd.targets.sleep.enable = true;
|
||||
systemd.sleep.extraConfig = ''
|
||||
AllowSuspend=yes
|
||||
AllowHibernate=no
|
||||
AllowSuspendThenHibernate=no
|
||||
HibernateDelaySec=5min
|
||||
'';
|
||||
systemd.sleep.settings.Sleep = {
|
||||
AllowSuspend = "yes";
|
||||
AllowHibernate = "no";
|
||||
AllowSuspendThenHibernate = "no";
|
||||
HibernateDelaySec = "5min";
|
||||
};
|
||||
|
||||
# After adding this snippet, you need to restart the system for the touchbar to work.
|
||||
hardware.apple.touchBar = {
|
||||
|
||||
Reference in New Issue
Block a user