forked from mirrors/nixpkgs
Don't run the cpufreq service in VMs
This commit is contained in:
parent
85e9ad1b2f
commit
8b7d73abba
|
@ -44,6 +44,7 @@ in
|
||||||
script = ''
|
script = ''
|
||||||
cpupower frequency-set -g ${cfg.cpuFreqGovernor}
|
cpupower frequency-set -g ${cfg.cpuFreqGovernor}
|
||||||
'';
|
'';
|
||||||
|
unitConfig.ConditionVirtualization = false;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
|
|
Loading…
Reference in a new issue