Skip to content

Commit

Permalink
powertop module: add kmod to path
Browse files Browse the repository at this point in the history
powertop attempt to load some kernel modules like msr by calling
modprobe. This is the counterpart to
88e43eb which has the powertop
executable search PATH for modprobe rather than hardcoding /sbin, and
actually adds the directory containing modprobe to its PATH for the
systemd service.

(cherry picked from commit fadb906)
  • Loading branch information
lheckemann authored and Mic92 committed Oct 7, 2017
1 parent b639cc6 commit 088a434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/tasks/powertop.nix
Expand Up @@ -16,6 +16,7 @@ in {
powertop = {
wantedBy = [ "multi-user.target" ];
description = "Powertop tunings";
path = [ pkgs.kmod ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "yes";
Expand Down

0 comments on commit 088a434

Please sign in to comment.