From 22e4bad354e49fb21b5db0bba9d39523f6074fd5 Mon Sep 17 00:00:00 2001 From: NullBite Date: Thu, 19 Dec 2024 23:03:57 -0500 Subject: [PATCH] nullbox: fix random hangs due to faulty USB hub i have no idea if it was a firmware issue but i'm not using those ports anyway and the random lags were *really* annoying --- hosts/nullbox/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index 094660b..c807e88 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -51,6 +51,13 @@ hardware.cpu.intel.updateMicrocode = true; + services.udev.extraRules = '' + # motherboard has a faulty USB hub or something; whenever *any* program + # tries to enumerate USB devices (which is a lot of programs for some + # reason), it hangs for several seconds. this disables the faulty hub. + SUBSYSTEMS=="usb", ACTION=="add", KERNEL=="usb2", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0003", ATTRS{serial}=="0000:00:14.0", ATTRS{busnum}=="2", ATTR{authorized}="0" + ''; + # nixfiles nixfiles = { profile.workstation.enable = true;