From fadb906b2f7091a9b973a6b1d79a4858e975b785 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Sat, 7 Oct 2017 21:45:43 +0100 Subject: [PATCH] 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. --- nixos/modules/tasks/powertop.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/tasks/powertop.nix b/nixos/modules/tasks/powertop.nix index 0ec4974789b4..609831506e16 100644 --- a/nixos/modules/tasks/powertop.nix +++ b/nixos/modules/tasks/powertop.nix @@ -16,6 +16,7 @@ in { powertop = { wantedBy = [ "multi-user.target" ]; description = "Powertop tunings"; + path = [ pkgs.kmod ]; serviceConfig = { Type = "oneshot"; RemainAfterExit = "yes";