diff options
author | Alois Wohlschlager <alois1@gmx-topmail.de> | 2022-07-22 18:33:37 +0200 |
---|---|---|
committer | Alois Wohlschlager <alois1@gmx-topmail.de> | 2022-07-22 18:33:37 +0200 |
commit | fe44207a715771e6103e0874c9b9bd693fd79955 (patch) | |
tree | 900e9999ab6736a13dc1f01b8ee37eb79c754f9a | |
parent | 87cb1156a91a8bd9c0a3488904582d692064df8b (diff) |
nixos/power-management: run post-resume after suspend-then-hibernate
The suspend-then-hibernate functionality is implemented by systemd in
the suspend-then-hibernate.target, separately from suspend.target and
hibernate.target. Thus post-resume would not run after resuming from
suspend-then-hibernate.
Fix this by explicitly making post-resume run after
suspend-then-hibernate.
-rw-r--r-- | nixos/modules/config/power-management.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/power-management.nix b/nixos/modules/config/power-management.nix index 710842e1503b..874b82278c93 100644 --- a/nixos/modules/config/power-management.nix +++ b/nixos/modules/config/power-management.nix @@ -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 |