From 9e5bbee2b108e37a861212b33a8d299a55cd82bd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Aug 2012 11:08:42 -0400 Subject: [PATCH] Make cpufreq a service instead of a task Otherwise it will be restarted by switch-to-configuration even when it hasn't changed. --- modules/tasks/cpu-freq.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/tasks/cpu-freq.nix b/modules/tasks/cpu-freq.nix index 0e0fd502a01c..cb64f8ca2a35 100644 --- a/modules/tasks/cpu-freq.nix +++ b/modules/tasks/cpu-freq.nix @@ -32,15 +32,12 @@ with pkgs.lib; startOn = "started udev"; - task = true; - - script = '' + preStart = '' for i in $(seq 0 $(($(nproc) - 1))); do ${pkgs.cpufrequtils}/bin/cpufreq-set -g ${config.powerManagement.cpuFreqGovernor} -c $i done ''; }; - }; }