install: split and harden hardware config scripts

This commit is contained in:
Ryan Hughes committed 2026-06-04 18:35:01 -04:00
1 parent 6056f8800c
commit d12d449b03
22 files changed
+95 -117

No files matched your search

+16 -10
View File
@@ -12,29 +12,35 @@ if lspci -nn | grep -q "106b:180[12]"; then
tiny-dfr
# Add user to video group (required for tiny-dfr to access /dev/dri devices)
sudo usermod -aG video ${USER}
usermod -aG video "${OMARCHY_INSTALL_USER:-${USER:-}}"
# Enable T2 services
sudo systemctl enable t2fanrd.service
sudo systemctl enable tiny-dfr.service
systemctl enable t2fanrd.service
systemctl enable tiny-dfr.service
echo "apple-bce" | sudo tee /etc/modules-load.d/t2.conf >/dev/null
echo "hci_bcm4377" | sudo tee -a /etc/modules-load.d/t2.conf >/dev/null
mkdir -p /etc/modules-load.d
{
echo "apple-bce"
echo "hci_bcm4377"
} > /etc/modules-load.d/t2.conf
echo "MODULES+=(apple-bce usbhid hid_apple hid_generic xhci_pci xhci_hcd)" | sudo tee /etc/mkinitcpio.conf.d/apple-t2.conf >/dev/null
mkdir -p /etc/mkinitcpio.conf.d
echo "MODULES+=(apple-bce usbhid hid_apple hid_generic xhci_pci xhci_hcd)" > \
/etc/mkinitcpio.conf.d/apple-t2.conf
cat <<EOF | sudo tee /etc/modprobe.d/brcmfmac.conf >/dev/null
mkdir -p /etc/modprobe.d
cat > /etc/modprobe.d/brcmfmac.conf <<'EOF'
# Fix for T2 MacBook WiFi connectivity issues
options brcmfmac feature_disable=0x82000
EOF
sudo mkdir -p /etc/limine-entry-tool.d
cat <<EOF | sudo tee /etc/limine-entry-tool.d/t2-mac.conf >/dev/null
mkdir -p /etc/limine-entry-tool.d
cat > /etc/limine-entry-tool.d/t2-mac.conf <<'EOF'
# Generated by Omarchy installer for T2 Mac support
KERNEL_CMDLINE[default]+=" intel_iommu=on iommu=pt pcie_ports=compat"
EOF
cat <<EOF | sudo tee /etc/t2fand.conf >/dev/null
cat > /etc/t2fand.conf <<'EOF'
[Fan1]
low_temp=55
high_temp=75