Addon script that installs Homebrew into an existing LXC container.
Dynamically detects the first non-root user, sets up multi-user access
via linuxbrew group with setgid directories, and configures shell
integration for both login and non-login shells.
Tested on Debian 13 (trixie) — brew doctor reports "ready to brew".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>