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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user