summaryrefslogtreecommitdiff
path: root/soc
blob: 5b574a50679a8fa30b9826abf4734eb0ea871109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env sh

bwrap \
  --ro-bind /usr /usr \
  --ro-bind /lib /lib \
  --ro-bind /lib64 /lib64 \
  --ro-bind /bin /bin \
  --ro-bind /etc/ssl /etc/ssl \
  --ro-bind /etc/ca-certificates /etc/ca-certificates \
  --ro-bind /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf \
  --dev /dev \
  --proc /proc \
  --tmpfs /home/$(whoami) \
  --tmpfs /tmp \
  --bind ~/.config/opencode /home/$(whoami)/.config/opencode \
  --bind ~/.local/state/opencode /home/$(whoami)/.local/state/opencode \
  --bind ~/.local/share/opencode /home/$(whoami)/.local/share/opencode \
  --bind ~/.local/share/uv/ /home/$(whoami)/.local/share/uv \
  --bind ~/.vibe /home/$(whoami)/.vibe \
  --bind ~/.cache/uv /home/$(whoami)/.cache/uv \
  --bind ~/.cache/huggingface /home/$(whoami)/.cache/huggingface \
  --bind ~/.cache/opencode /home/$(whoami)/.cache/opencode \
  --bind ~/code/workspace /home/$(whoami)/project \
  --bind ~/.local/bin/vibe /home/$(whoami)/.local/bin/vibe \
  --bind ~/.cargo /home/$(whoami)/.cargo \
  --bind ~/.rustup /home/$(whoami)/.rustup \
  --clearenv \
  --setenv HOME /home/$(whoami) \
  --setenv USER $(whoami) \
  --setenv SHELL /bin/bash \
  --setenv PATH /home/$(whoami)/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin \
  --chdir /home/$(whoami)/project \
  bash