summaryrefslogtreecommitdiff
path: root/modules/laptop.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/laptop.nix')
-rw-r--r--modules/laptop.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/modules/laptop.nix b/modules/laptop.nix
index 39719ae..c6c1f70 100644
--- a/modules/laptop.nix
+++ b/modules/laptop.nix
@@ -1,7 +1,7 @@
{ pkgs, config, ... }:
{
- /* services.tlp = {
+ services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
@@ -9,8 +9,24 @@
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
+
+ CPU_MIN_PERF_ON_AC = 40;
+ CPU_MAX_PERF_ON_AC = 100;
+ CPU_MIN_PERF_ON_BAT = 0;
+ CPU_MAX_PERF_ON_BAT = 30;
+
+ CPU_BOOST_ON_AC = 1;
+ CPU_BOOST_ON_BAT = 0;
+
+ CPU_HWP_DYN_BOOST_ON_AC = 1;
+ CPU_HWP_DYN_BOOST_ON_BAT = 0;
+
+ PLATFORM_PROFILE_ON_AC = "performance";
+ PLATFORM_PROFILE_ON_BAT = "low-power";
};
- }; */
+ };
+
+ services.power-profiles-daemon.enable = false;
boot = {
kernelModules = [ "acpi_call" ];