From 240732b5e087a55366a6566e28e82c870a08fe0c Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 1 Apr 2023 10:15:47 +0200 Subject: [PATCH] hosts: restructure tlp --- hosts/laptop/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 05a97ec..3c651fe 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -68,7 +68,13 @@ }; services = { - tlp.enable = true; # TLP and auto-cpufreq for power management + tlp = { + enable = true; # TLP and auto-cpufreq for power management + settings = { + USB_DENYLIST="fc32:1287 1e7d:2e4a 1d5c:5500 1d5c:5510"; + }; + }; + logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed #auto-cpufreq.enable = true; blueman.enable = true;