From 57a868228ce970c00deb3890eea509d41458cf41 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 16 Mar 2026 17:31:46 +0800 Subject: [PATCH] fix: systemd.sleep.extraConfig no longer has any effect --- hosts/12kingdoms-shoukei/apple-silicon.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/12kingdoms-shoukei/apple-silicon.nix b/hosts/12kingdoms-shoukei/apple-silicon.nix index 8916a8db..283e953f 100644 --- a/hosts/12kingdoms-shoukei/apple-silicon.nix +++ b/hosts/12kingdoms-shoukei/apple-silicon.nix @@ -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 = {