Merge pull request #182487 from alois31/suspend-then-hibernate

nixos/power-management: run post-resume after suspend-then-hibernate
This commit is contained in:
Lassulus 2022-08-16 08:22:04 +02:00 committed by GitHub
commit 05d4c2162b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ in
systemd.services.post-resume =
{ description = "Post-Resume Actions";
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
script =
''
/run/current-system/systemd/bin/systemctl try-restart post-resume.target