nixos/power-management: always run systemctl of the currently running systemd

This commit is contained in:
Florian Klink 2020-05-21 10:28:29 +02:00
parent ac97b19a2a
commit 783f40bb70
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ in
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ]; after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
script = script =
'' ''
${config.systemd.package}/bin/systemctl try-restart post-resume.target /run/current-system/systemd/bin/systemctl try-restart post-resume.target
${cfg.resumeCommands} ${cfg.resumeCommands}
${cfg.powerUpCommands} ${cfg.powerUpCommands}
''; '';