Navigation Menu

Skip to content

Commit

Permalink
nixos/power-management: always run systemctl of the currently running…
Browse files Browse the repository at this point in the history
… systemd
  • Loading branch information
flokli committed May 21, 2020
1 parent ac97b19 commit 783f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/config/power-management.nix
Expand Up @@ -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}
'';
Expand Down

0 comments on commit 783f40b

Please sign in to comment.