about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2017-10-20 22:59:31 +0300
committerJoachim F <joachifm@users.noreply.github.com>2017-10-20 19:59:31 +0000
commitdab7ecc0542c024f9725216edfbddefafc910413 (patch)
tree140ac2f1a2a47b10549eba615dd1124c5b8175a4 /nixos
parent86b8e28bc147e1585ffe84063bdfb546afc24f9a (diff)
downloadnixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar.gz
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar.bz2
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar.lz
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar.xz
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.tar.zst
nixlib-dab7ecc0542c024f9725216edfbddefafc910413.zip
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.pl2
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 926d1e3133f7..c0df2977856e 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\";");
         }
     }
 }