nix-config-v2/modules/pwrMgmt
2024-12-15 18:22:36 -05:00
..
default.nix modularized all the things 2024-12-15 18:22:36 -05:00
README.md modularized all the things 2024-12-15 18:22:36 -05:00

Power management modules

This directory houses my own custom defined power management settings. These are set in the machine-specific configurations (typically).

Examples

Given that this configuration is in the machine/<hostname> directory (where hostname is the name of the computer your configuring):

Desktop configuration

  imports = [
    ../../pwrMgmt
    # other configuration files here...
  ];

  customPowerManagement = {
    enable = true;
    cpuFreqGovernor = "performance";
    powertop.enable = false;
  };

Laptop configuration

  imports = [
    ../../pwrMgmt
    # other configuration files here...
  ];

  customPowerManagement = {
    enable = true;
    cpuFreqGovernor = "powersave";
    powertop = {
      enable = true;
      autotuneOnBoot = true;
    };
    battery = {
      enable = true;
      startChargeThreshold = 40;
      stopChargeThreshold = 75;
    };
  };

Remember, these are just examples. Please suit these examples to fit your specific hardware.