summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-generate-config.pl
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2018-12-29 22:09:47 +0900
committer(cdep)illabout <cdep.illabout@gmail.com>2019-01-01 19:18:12 +0900
commitb0f10d2d531ebac8130c8f111570311ac758da8e (patch)
tree8f3d2d9d826d761f389ffd7219e43dfb68eba5a5 /nixos/modules/installer/tools/nixos-generate-config.pl
parentc31c0558ddad7161a4025117694197264cda9750 (diff)
downloadnixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar.gz
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar.bz2
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar.lz
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar.xz
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.tar.zst
nixpkgs-b0f10d2d531ebac8130c8f111570311ac758da8e.zip
cpufreq: add option for setting the cpu max and min frequencies
This adds a NixOS option for setting the CPU max and min frequencies
with `cpufreq`.  The two options that have been added are:

- `powerManagement.cpufreq.max`
- `powerManagement.cpufreq.min`

It also adds an alias to the `powerManagement.cpuFreqGovernor` option as
`powerManagement.cpufreq.governor`.  This updates the installer to use
the new option name.  It also updates the manual with a note about
the new name.
Diffstat (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl')
-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 52a129b39bc..fa01dc7bbaf 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -104,7 +104,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 = lib.mkDefault \"$e\";");
+            last if (push @attrs, "powerManagement.cpufreq.governor = lib.mkDefault \"$e\";");
         }
     }
 }