nixos/power-management: always run systemctl of the currently running systemd
This commit is contained in:
parent
ac97b19a2a
commit
783f40bb70
@ -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}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user