diff options
author | Florian Klink <flokli@flokli.de> | 2022-11-16 21:25:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 21:25:40 +0000 |
commit | 67e0d7a1bf6d87ec39d9ae9ace85f8fae5a06f6d (patch) | |
tree | 1d855f50310862e286da054e2f85256523f19837 /nixos/modules/config | |
parent | 494c011a6ac7c8132182d223dd3cff5d6c7995e4 (diff) | |
parent | 5d07c39b149797c710ff09abda3ad90da231d53e (diff) |
Merge pull request #199352 from symphorien/deadlock-post-resume
nixos/power-management: fix deadlock with post-resume.{target,service}
Diffstat (limited to 'nixos/modules/config')
-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 a4e8028cfbe9e..e7fd02920e0dc 100644 --- a/nixos/modules/config/power-management.nix +++ b/nixos/modules/config/power-management.nix @@ -94,7 +94,7 @@ in after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ]; script = '' - /run/current-system/systemd/bin/systemctl try-restart post-resume.target + /run/current-system/systemd/bin/systemctl try-restart --no-block post-resume.target ${cfg.resumeCommands} ${cfg.powerUpCommands} ''; |