summaryrefslogtreecommitdiff
path: root/modules/tlp.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-05-25 19:27:42 +0200
committerGrigory Shipunov2022-05-25 19:27:42 +0200
commita9532469718f53912a66073dfae12a5bcf8e7ffa (patch)
treeb35755f1a07b3d9798f12d5329c83f97145b5800 /modules/tlp.nix
init
Diffstat (limited to 'modules/tlp.nix')
-rw-r--r--modules/tlp.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/tlp.nix b/modules/tlp.nix
new file mode 100644
index 0000000..20d1ddc
--- /dev/null
+++ b/modules/tlp.nix
@@ -0,0 +1,10 @@
+{ config, pkgs, ... }:
+
+{
+ powerManagement.cpuFreqGovernor = null;
+ services.power-profiles-daemon.enable = false;
+ services.tlp.enable = true;
+ services.tlp.extraConfig = ''
+USB_BLACKLIST="1d50:604b 1d50:6089 1d50:cc15 1fc9:000c"
+'';
+}