powertop module: add kmod to path
powertop attempt to load some kernel modules like msr by calling
modprobe. This is the counterpart to
88e43eb39bcda5f8fdf41d566bc6799596177cd0 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.
commitfadb906b2f7091a9b973a6b1d79a4858e975b785
authorLinus Heckemann <git@sphalerite.org>
dateSat 7 Oct 2017, 21:45 (9 years ago)
parent3fe7cdd
nixos/modules/tasks/powertop.nix+1
@@ -16,6 +16,7 @@ in {
1616 powertop = {
1717 wantedBy = [ "multi-user.target" ];
1818 description = "Powertop tunings";
19+ path = [ pkgs.kmod ];
1920 serviceConfig = {
2021 Type = "oneshot";
2122 RemainAfterExit = "yes";