mio-ops/profiles/powerManagement.nix
2021-11-16 17:53:38 +10:00

26 lines
534 B
Nix

# 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 = {
logind = {
lidSwitch = "hybrid-sleep";
lidSwitchDocked = "ignore";
};
tlp.enable = false;
upower = {
enable = true; # Enable application power managemetn support
percentageCritical = 15;
percentageAction = 15;
};
};
}