2021-05-09 06:34:31 +00:00
|
|
|
# Power management configuration for the laptops
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
|
|
|
cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
powertop.enable = true; # Enable powertop auto tuning on startup
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2021-05-13 01:36:54 +00:00
|
|
|
logind = {
|
|
|
|
lidSwitch = "hybrid-sleep";
|
|
|
|
lidSwitchDocked = "hybrid-sleep";
|
|
|
|
};
|
2021-05-17 04:16:53 +00:00
|
|
|
tlp.enable = true;
|
2021-05-09 06:34:31 +00:00
|
|
|
upower = {
|
|
|
|
enable = true; # Enable application power managemetn support
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|