diff options
author | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2017-10-20 22:59:31 +0300 |
---|---|---|
committer | Joachim F <joachifm@users.noreply.github.com> | 2017-10-20 19:59:31 +0000 |
commit | dab7ecc0542c024f9725216edfbddefafc910413 (patch) | |
tree | 140ac2f1a2a47b10549eba615dd1124c5b8175a4 /nixos | |
parent | 86b8e28bc147e1585ffe84063bdfb546afc24f9a (diff) |
nixos-generate-config: lessen priority for cpuFreqGovernor (#30221)
In particular, it conflicts with `services.tlp.enable` option. There exists workaround: ``` powerManagement.cpuFreqGovernor = lib.mkForce null; services.tlp.enable = true; ``` But should it?
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 926d1e3133f7f..c0df2977856e3 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -103,7 +103,7 @@ if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") { foreach $e (@desired_governors) { if (index($governors, $e) != -1) { - last if (push @attrs, "powerManagement.cpuFreqGovernor = \"$e\";"); + last if (push @attrs, "powerManagement.cpuFreqGovernor = lib.mkDefault \"$e\";"); } } } |