summary refs log tree commit diff
path: root/hosts/laptop/cfg.nix
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-04-21 15:22:47 +0300
committertzlil <tzlils@protonmail.com>2023-04-21 15:22:47 +0300
commit0598236822c8ac36f8028c89d4b79f4f6b251a72 (patch)
tree6fae8860bea46fd3a9bf432ff2d7709739df53b0 /hosts/laptop/cfg.nix
parent977e7c795ab2ca3d2a226bdbebf4d5e7b3dad96c (diff)
dont rememeber
Diffstat (limited to 'hosts/laptop/cfg.nix')
-rw-r--r--hosts/laptop/cfg.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index 3fb53d0..e7042df 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -102,5 +102,21 @@
       driSupport = true;
       driSupport32Bit = true;
     };
+
+    networking.firewall.allowedTCPPorts = [25565];
+
+    services = {
+      power-profiles-daemon.enable = true;
+      thermald.enable = true;
+    };
+
+    services.tlp = {
+      settings = {
+        CPU_BOOST_ON_AC = 1;
+        CPU_BOOST_ON_BAT = 0;
+        CPU_SCALING_GOVERNOR_ON_AC = "performance";
+        CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
+      };
+    };
   };
 }