Make cpufreq a service instead of a task

Otherwise it will be restarted by switch-to-configuration even when it
hasn't changed.
This commit is contained in:
Eelco Dolstra 2012-08-23 11:08:42 -04:00
parent b02c488fde
commit 9e5bbee2b1

View file

@ -32,15 +32,12 @@ with pkgs.lib;
startOn = "started udev"; startOn = "started udev";
task = true; preStart = ''
script = ''
for i in $(seq 0 $(($(nproc) - 1))); do for i in $(seq 0 $(($(nproc) - 1))); do
${pkgs.cpufrequtils}/bin/cpufreq-set -g ${config.powerManagement.cpuFreqGovernor} -c $i ${pkgs.cpufrequtils}/bin/cpufreq-set -g ${config.powerManagement.cpuFreqGovernor} -c $i
done done
''; '';
}; };
}; };
} }