Headless NixOS for Raspberry Pi - WiFi + Tailscale

I put together a flake-based NixOS configuration for Raspberry Pi 4 that boots directly into WiFi with Tailscale pre-configured. The main use case: running a Pi headlessly when you don’t have access to ethernet or a router you control.

Includes workarounds for the Pi 4 WiFi driver quirks (brcmfmac) that can cause connection issues.

Repo: Hunor Gered / nixos-rpi-headless · GitLab

Feedback welcome, particularly if anyone tests on Pi 3B+, Pi 5, or Zero 2W.

3 Likes

Thank you for sharing! Consider adding this somewhere at the bottom of the appropriate wiki page.

1 Like

Thanks, I’ll add a link to the RPi wiki page.

Done! I’ve added it under the ‘Customizing & Generating SD image without installation step’ section of the RPi4 wiki page. Thanks for the nudge!

1 Like