ctucx.git: nixfiles

ctucx' nixfiles

commit ce948a1683e1cf5c64a6a6af4d79fc5dc99bf8e7
parent 16acc7c39204eab6fcbb9fc9239f1f21e9bee4a5
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 13 Oct 2021 18:25:19 +0200

mobile-device: lower max cpu-freq on ac to 3ghz, disable throttled
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/configurations/mobile-device.nix b/configurations/mobile-device.nix
@@ -7,6 +7,12 @@
   };
 
   services = {
+    upower.enable      = true;
+#    throttled.enable   = true;
+
+    logind.lidSwitch   = "lock";
+    logind.extraConfig = "HandlePowerKey=suspend";
+
     tlp = {
       enable = true;
       settings = {

@@ -18,7 +24,7 @@
 
 
         CPU_SCALING_MIN_FREQ_ON_AC   = 800000;
-        CPU_SCALING_MAX_FREQ_ON_AC   = 3500000;
+        CPU_SCALING_MAX_FREQ_ON_AC   = 3000000;
         CPU_SCALING_MIN_FREQ_ON_BAT  = 800000;
         CPU_SCALING_MAX_FREQ_ON_BAT  = 2000000;
 

@@ -33,14 +39,5 @@
         TPSMAPI_ENABLE               = 1;
       };
     };
-
-    upower.enable                 = true;
-
-    logind.lidSwitch              = "lock";
-    logind.extraConfig = ''
-       HandlePowerKey=suspend
-    '';
-
-    throttled.enable              = true;
   };
 }