nixos/power-management: use sleep.target instead of listing all individual sleep targets

See https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html#sleep.target
This commit is contained in:
r-vdp
2026-02-08 21:33:33 +02:00
parent f07e7af925
commit dcc36d1e74
+2 -6
View File
@@ -83,12 +83,8 @@ in
systemd.services.post-resume = {
description = "Post-Resume Actions";
after = [
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
];
# Pulled in by post-resume.service above
after = [ "sleep.target" ];
script = ''
/run/current-system/systemd/bin/systemctl try-restart --no-block post-resume.target
${cfg.resumeCommands}