From 54fb3c36fe7fe8975072431d26eff1bdef84c15c Mon Sep 17 00:00:00 2001 From: mir Date: Sun, 7 Apr 2024 21:56:25 -0800 Subject: [PATCH] support the apple superdrive dvd player usb device, and others ig --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index 10f3833..70241be 100644 --- a/configuration.nix +++ b/configuration.nix @@ -180,7 +180,11 @@ fontconfig glibc gobject-introspection + sg3_utils ]; + services.udev.extraRules = '' + ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="${pkgs.sg3_utils}/bin/sg_raw /dev/$kernel EA 00 00 00 00 00 01" + ''; services.flatpak.enable = true;