Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: hardware fingerprint dump to /mnt/logs on boot

Saves lspci, lsusb, lsmod, input devices, GPU, sound cards,
loaded firmware, and kernel modules to hardware-fingerprint.txt.
This data maps exactly which drivers/modules are needed for a
given machine, enabling targeted initrd trimming for fast boot.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+50 -1
+50 -1
fedac/nixos/modules/kiosk.nix
··· 41 41 42 42 echo "[ac-native-start] DRM ready: $(ls /dev/dri/)" 43 43 44 + # Hardware fingerprint — dump to /mnt/logs for initrd optimization 45 + if [ -d /mnt/logs ]; then 46 + HW="/mnt/logs/hardware-fingerprint.txt" 47 + { 48 + echo "=== AC Native Hardware Fingerprint ===" 49 + echo "date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" 50 + echo "" 51 + echo "=== CPU ===" 52 + grep -m1 "model name" /proc/cpuinfo 2>/dev/null 53 + echo "cores=$(nproc 2>/dev/null)" 54 + echo "" 55 + echo "=== Memory ===" 56 + head -1 /proc/meminfo 2>/dev/null 57 + echo "" 58 + echo "=== PCI Devices ===" 59 + ${pkgs.pciutils}/bin/lspci -nn 2>/dev/null 60 + echo "" 61 + echo "=== Loaded Kernel Modules ===" 62 + lsmod 2>/dev/null | sort 63 + echo "" 64 + echo "=== Block Devices ===" 65 + lsblk -o NAME,SIZE,TYPE,FSTYPE,LABEL,MODEL 2>/dev/null 66 + echo "" 67 + echo "=== GPU ===" 68 + ls -la /dev/dri/ 2>/dev/null 69 + cat /sys/class/drm/card*/device/vendor /sys/class/drm/card*/device/device 2>/dev/null 70 + echo "" 71 + echo "=== Input Devices ===" 72 + cat /proc/bus/input/devices 2>/dev/null 73 + echo "" 74 + echo "=== Network Interfaces ===" 75 + ip link show 2>/dev/null 76 + echo "" 77 + echo "=== Sound Cards ===" 78 + cat /proc/asound/cards 2>/dev/null 79 + echo "" 80 + echo "=== USB Devices ===" 81 + ${pkgs.usbutils}/bin/lsusb 2>/dev/null 82 + echo "" 83 + echo "=== Firmware Files Loaded ===" 84 + dmesg 2>/dev/null | grep -i "firmware\|ucode\|microcode" | head -20 85 + echo "" 86 + echo "=== Initrd Modules (loaded at boot) ===" 87 + dmesg 2>/dev/null | grep -i "module\|driver" | head -30 88 + } > "$HW" 2>/dev/null || true 89 + echo "[ac-native-start] hardware fingerprint saved to $HW" 90 + fi 91 + 44 92 ${write-breadcrumb} ac-native-starting \ 45 93 "binary=${ac-native}/bin/ac-native" \ 46 94 "piece=${ac-native}/share/ac-native/piece.mjs" \ ··· 92 140 coreutils gnugrep gnused gawk findutils 93 141 which psmisc 94 142 systemd util-linux 95 - iproute2 kbd wpa_supplicant iw dhcpcd curl 143 + iproute2 kbd pciutils usbutils 144 + wpa_supplicant iw dhcpcd curl 96 145 dosfstools efibootmgr parted 97 146 ac-native 98 147 ];