Run dev tooling in a persistent "dev" distrobox on the Steam Deck

SteamOS updates wipe pacman-installed packages and headers, so nvim,
treesitter build deps and Go tools now live in an Arch distrobox.

- bashrc: auto-enter the dev container from interactive host shells
  (skip with NO_DISTROBOX=1)
- systemd/distrobox-dev.service: start the container at login
- packages.txt: add treesitter build deps, Nerd Font symbols, Go devtools

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-09 16:08:25 +00:00
co-authored by Claude Opus 5.5
parent daed1d7e73
commit 7ab3dc7779
3 changed files with 39 additions and 0 deletions
+7
View File
@@ -1 +1,8 @@
alias vim=nvim alias vim=nvim
# Drop interactive host shells straight into the "dev" distrobox.
# Skip with: NO_DISTROBOX=1 bash
if [[ $- == *i* && -z $CONTAINER_ID && ! -e /run/.containerenv && -z $NO_DISTROBOX ]] \
&& command -v distrobox >/dev/null && podman container exists dev 2>/dev/null; then
distrobox enter dev && exit # falls back to host shell if enter fails
fi
+20
View File
@@ -96,4 +96,24 @@ wine
mono mono
avahi avahi
tree-sitter-cli tree-sitter-cli
base-devel
glibc
linux-api-headers
git
curl
tar
ttf-inconsolata
ttf-nerd-fonts-symbols
ttf-nerd-fonts-symbols-mono
go
gopls
delve
golangci-lint
gofumpt
staticcheck
revive
go-tools
+12
View File
@@ -0,0 +1,12 @@
[Unit]
Description=Start the "dev" distrobox container at login
After=default.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/podman start dev
ExecStop=/usr/bin/podman stop -t 10 dev
[Install]
WantedBy=default.target