Skip to content

powerManagement

Powermanagement

powerManagement.cpuFreqGovernor

Configure the governor used to regulate the frequency of the available CPUs. By default, the kernel configures the performance governor, although this may be overwritten in your hardware-configuration.nix file.

Often used values: "ondemand", "powersave", "performance"

Type: null or string

Default

null

Example

"ondemand"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/cpu-freq.nix

powerManagement.cpufreq.max

The maximum frequency the CPU will use. Defaults to the maximum possible.

Type: null or (unsigned integer, meaning >=0)

Default

null

Example

2200000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/cpu-freq.nix

powerManagement.cpufreq.min

The minimum frequency the CPU will use.

Type: null or (unsigned integer, meaning >=0)

Default

null

Example

800000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/cpu-freq.nix

powerManagement.enable

Whether to enable power management. This includes support for suspend-to-RAM and powersave features on laptops.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/power-management.nix

powerManagement.powerDownCommands

Commands executed when the machine powers down. That is, they're executed both when the system shuts down and when it goes to suspend or hibernation.

Type: strings concatenated with "\n"

Default

""

Example

"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/power-management.nix

powerManagement.powerUpCommands

Commands executed when the machine powers up. That is, they're executed both when the system first boots and when it resumes from suspend or hibernation.

Type: strings concatenated with "\n"

Default

""

Example

"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/power-management.nix

powerManagement.powertop.enable

Whether to enable powertop auto tuning on startup. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/powertop.nix

powerManagement.resumeCommands

Commands executed after the system resumes from suspend-to-RAM. Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/power-management.nix

powerManagement.scsiLinkPolicy

SCSI link power management policy. The kernel default is "max_performance".

"med_power_with_dipm" is supported by kernel versions 4.15 and newer.

Type: null or one of "min_power", "max_performance", "medium_power", "med_power_with_dipm"

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/scsi-link-power-management.nix