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

View file

@ -94,7 +94,7 @@ in
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
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.powerUpCommands}
'';