{ lib, ... }: with lib; { # Preloading the kernel modules to avoid: # tlp: Error in configuration at CPU_SCALING_GOVERNOR_ON_BAT="powersave": governor not available. Skipped. boot.kernelModules = [ "cpufreq_ondemand" "cpufreq_powersave" ]; services.tlp = { enable = true; settings = { CPU_SCALING_GOVERNOR_ON_AC = "ondemand"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; }; }; }