mio-ops/profiles/powerManagement.nix

24 lines
483 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 = "hybrid-sleep";
};
tlp.enable = true;
upower = {
enable = true; # Enable application power managemetn support
};
};
}