mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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:
parent
b02c488fde
commit
9e5bbee2b1
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue