24 lines
488 B
Nix
24 lines
488 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";
|
|
};
|
|
thermald.enable = true;
|
|
upower = {
|
|
enable = true; # Enable application power managemetn support
|
|
};
|
|
};
|
|
}
|