forked from mirrors/nixpkgs
power management: restart post-resume.target on resume
Trigger a restart of the post-resume.target on resume. That allows other systemd services to receive the restart signal after resume by becoming 'partOf' the post-resume.target.
This commit is contained in:
parent
acb1b3cdd0
commit
d5604f0b22
|
@ -98,6 +98,7 @@ in
|
|||
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||
script =
|
||||
''
|
||||
${config.systemd.package}/bin/systemctl try-restart post-resume.target
|
||||
${cfg.resumeCommands}
|
||||
${cfg.powerUpCommands}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue