diff --git a/nixos/configs/udev.nix b/nixos/configs/udev.nix index 6a73676..7d4a621 100644 --- a/nixos/configs/udev.nix +++ b/nixos/configs/udev.nix @@ -19,6 +19,10 @@ extraRules = '' # Brother p-touch cube SUBSYSTEM == "usb", ATTRS{idVendor} == "04f9", ATTRS{idProduct} == "20af", MODE = "0666" + + # If we have a Apple T2 VHCI, force it to re-start once things are more up. + # This forces a re-enumeration of the connected devices, and thus makes things like the touch bar work reliably. + ACTION=="add", SUBSYSTEM=="usb", ATTR{serial}=="bce-vhci", ATTR{authorized}=="1", ATTR{authorized}="0", ATTR{authorized}="1" ''; }; diff --git a/nixos/hosts/miko.nix b/nixos/hosts/miko.nix index 5f5f512..9d173ab 100644 --- a/nixos/hosts/miko.nix +++ b/nixos/hosts/miko.nix @@ -18,7 +18,10 @@ # Use the more up-to-date touchBar option to enabel the touchbar. hardware.apple-t2.enableTinyDfr = false; - hardware.apple.touchBar.enable = true; + hardware.apple.touchBar = { + enable = true; + settings = {}; + }; # Bootloader. boot.loader.systemd-boot.enable = true;