Configuration Reference
podbox searches for a definition file in this order:
./.podbox.toml(project-local)- Active context from
~/.config/podbox/.active(set viapodbox use <name>) ~/.config/podbox/profiles/*.toml(canonical), with legacy~/.config/podbox/*.tomlstill accepted (first file, sorted by name)- Embedded default (
fedora:44, namepodbox)
Inheritance (extends)
A definition may start from another file with extends: a path
(./base.toml), a profile (profile:dev, or builtin:dev for the
shipped template even when you shadow it), or a sibling name. The parent
merges first, then the child overrides. Tables merge key by key;
scalars are overwritten by the child. Arrays merge by kind:
- Set-like lists (packages, ports, mounts, blocked interfaces, …) union with deduplication, parent order first.
- Prefix an entry with
!to remove a parent entry instead:install = ["!nano", "vim"]drops the parent'snanoand addsvim. [image.run].commandsappends verbatim — order and repetition matter forRUNsteps, so nothing is deduplicated there.[[provision]]steps merge by name: a child step with the same name replaces the parent's step in place; new names append.
[image]
| Key | Type | Default | Description |
|---|---|---|---|
base | string | required | Base container image (e.g. "fedora:44") |
name | string | required | Image tag name (e.g. "myenv") |
image | string | — | Prebuilt image reference (e.g. "ghcr.io/user/myenv:latest"). When set, podbox uses the registry image instead of building from base |
pull_retry | int | 3 | Number of pull retries on failure |
pull_retry_delay | string | "5s" | Delay between pull retries |
[image.packages]
| Key | Type | Default | Description |
|---|---|---|---|
install | string[] | [] | Packages to install via the distro package manager |
remove | string[] | [] | Packages to remove |
manager | string | auto-detected | Package manager override: dnf, apt, pacman, apk, zypper. Auto-detected from the base image name when omitted |
[image.run]
| Key | Type | Default | Description |
|---|---|---|---|
commands | string[] | [] | Extra RUN commands in the Containerfile |
1[image]2base = "fedora:44"3name = "myenv"4 5[image.packages]6install = ["git", "gcc", "ripgrep"]7remove = ["vim-minimal"]8 9[image.run]10commands = ["dnf clean all"][container]
| Key | Type | Default | Description |
|---|---|---|---|
name | string | required | Container name (used for systemd unit names, socket paths) |
home | string | required | Host path for isolated home (~ expands) |
shell | string | "bash" | Default login shell inside the container |
memory | string | — | Memory limit (e.g. "4G", "2048M"). Passed as Memory= in Quadlet |
cpus | string | — | CPU limit (e.g. "2.0", "0.5"). Passed through to Podman as --cpus |
slice | string | "podbox.slice" | systemd slice for the container service |
cpu_weight | integer | 200 | systemd CPU contention weight (1–10000) |
reload_cmd | string | — | Command run on config reload. Passed as ReloadCmd= in Quadlet |
[container.mounts]
| Key | Type | Default | Description |
|---|---|---|---|
extra | string[] | [] | Extra Volume= lines (e.g. "~/Work:/home/user/Work:z") |
[container.env]
| Key | Type | Default | Description |
|---|---|---|---|
* | string | — | Arbitrary environment variables passed to the container; explicit values always win over derived ones below |
forward | string[] | [] | Extra host variables to forward for enter, exec, and run; supports exact names and PREFIX_* patterns. Terminal identity is forwarded automatically for interactive sessions and host-exec. |
Derived variables (engine-set from the rest of the config, no TOML needed):
| Variable | Derived from | Example |
|---|---|---|
SHELL | container.shell (fish → /usr/bin/fish, bash → /bin/bash, zsh → /bin/zsh, full paths verbatim) | shell = "fish" ⇒ SHELL=/usr/bin/fish |
DISPLAY | integration.x11 | x11 = true ⇒ DISPLAY=:0 |
Terminal sessions (enter, exec) also receive the invoking terminal's
identity automatically: TERM, COLORTERM, TERM_PROGRAM,
TERM_PROGRAM_VERSION, VTE_VERSION, KONSOLE_VERSION,
KITTY_WINDOW_ID, WEZTERM_PANE, LC_TERMINAL and related presentation
variables where set. Podbox mounts the host terminfo database read-only so
host-specific values such as xterm-ghostty resolve inside the container.
host-exec applies the same presentation allowlist to its host child.
Explicit [container.env] values and -e KEY=VALUE overrides win over the
automatic terminal variables. Do not hardcode TERM unless you deliberately
want to override the host terminal; terminal control sockets and multiplexer
state (KITTY_LISTEN_ON, WEZTERM_UNIX_SOCKET, TMUX, STY) are never
forwarded automatically.
1[container]2name = "myenv"3home = "~/containers/myenv"4shell = "zsh"5 6[container.mounts]7extra = ["~/Projects:/home/user/Projects:z"]8 9[container.env]10EDITOR = "nvim"11PAGER = "less"12forward = ["SSH_AUTH_SOCK", "AWS_*"]13 14[container.services]15redis = "redis-server /etc/redis/redis.conf"16postgres = { command = "postgres -D /home/user/pgdata", restart = "on-failure" }Services run under the guest daemon (the container's init stays Podman's).
Short form restarts on failure; long form takes restart = "never",
"on-failure", or "always", plus an env table. Logs go to
/run/podbox/services/<name>.log. Services don't block idle shutdown.
For one-shot setup inside the home — [dotfiles] and [[provision]] — see
Home Setup. Both keys are documented there with their behaviour.
[security]
| Key | Type | Default | Description |
|---|---|---|---|
apparmor | string | — | AppArmor profile name. Passed as AppArmor= in Quadlet ("unconfined" to disable) |
seccomp | string | — | Seccomp profile path, "default", or "unconfined". Passed as SeccompProfile= |
security_label_disable | bool | true | Disable SELinux process labeling. Emits SecurityLabelDisable=true when set |
no_new_privileges | bool | true | Block privilege escalation via setuid binaries (sudo, su, AUR helpers). Emits NoNewPrivileges=true in the Quadlet. Set false to allow. |
read_only_rootfs | bool | false | Make root filesystem read-only. Emits ReadOnly=true in Quadlet |
userns | string | — | User namespace mode override. Defaults to "keep-id". Supported: "keep-id", "nomap", "private" |
cap_preset | string | "default" | Capability preset. Options: "none", "default", "monitoring", "admin". Adds a predefined set of --cap-add entries alongside any cap_add list below |
cap_add | string[] | [] | Extra Linux capabilities to add (e.g. ["SYS_ADMIN"]). Combined with cap_preset caps |
secrets | table[] | [] | Secrets passed to the container without baking them into the image (see below) |
[security].secrets
Values the container needs but the image must never contain. Short form
reads a podman secret and exposes it as a same-named variable:
[security]secrets = ["openai_key"] # Secret=openai_key,type=env,target=openai_keyUse the long form for a different target, a file instead of a variable, a mode, or a systemd credential source:
1[[security.secrets]]2name = "aws_creds"3type = "mount" # env (default) or mount4target = "/run/secrets/aws" # destination name inside the container5mode = "0400"6 7[[security.secrets]]8name = "gh_token"9source = "systemd" # podman (default) or systemd10target = "GH_TOKEN" # Environment=GH_TOKEN=/run/secrets/gh_token11path = "/etc/credstore/gh_token" # host-side credential file (required for systemd)12# encrypted = true # read path with LoadCredentialEncrypted=A systemd secret emits LoadCredential=<name>:<path> under [Service]
(so %d/$CREDENTIALS_DIRECTORY is populated), mounts
Volume=%d/<name>:/run/secrets/<name>:ro,z, and — for type = "env" —
sets the target variable to the container path. mount secrets expose only
the file. The credential name must be a safe filename (no / or ..).
| Key | Type | Default | Description |
|---|---|---|---|
name | string | required | Secret name to read |
type | string | "env" | env (environment variable) or mount (file in the container) |
target | string | secret name | Destination name inside the container |
mode | string | — | File mode for mount secrets |
source | string | "podman" | podman reads podman secret; systemd reads a systemd credential |
path | string | — | Host-side credential file. Required with source = "systemd" |
encrypted | bool | false | Read path with LoadCredentialEncrypted= instead of LoadCredential=. Only meaningful with source = "systemd" |
Don't mix forms: all bare strings, or all tables. podbox doctor checks
the named secrets exist.
1[security]2apparmor = "unconfined"3seccomp = "default"4read_only_rootfs = true5userns = "nomap"6cap_preset = "monitoring"7cap_add = ["SYS_ADMIN"][network]
| Key | Type | Default | Description |
|---|---|---|---|
mode | string | "pasta" | Network mode: "host", "bridge", "none", "pasta", "slirp4netns", "private". Defaults to "pasta" (user-space NAT with working networking). "private" is loopback only — no host sockets or localhost services. "host" shares the host network — choose it deliberately |
ports | string[] | [] | Port mappings ("hostPort:containerPort"). Emitted as PublishPort= in Quadlet (ignored in host mode) |
[network]mode = "pasta"ports = ["8080:80", "443:443"]offline = falseoffline = true forces Network=none while keeping your mode in the
definition. Container-wide only — no per-command override.
[storage.shared_caches]
Opt-in caches shared between podbox containers. Removing a container keeps its volumes.
1[storage.shared_caches]2cargo = true3mbx = true4rustup = false5 6[[storage.shared_caches.custom]]7name = "models"8container_path = "~/.cache/models"| Key | Type | Default | Path shared |
|---|---|---|---|
cargo | bool | false | ~/.cargo/registry, ~/.cargo/git |
npm | bool | false | ~/.npm |
pnpm | bool | false | ~/.local/share/pnpm/store |
pip | bool | false | ~/.cache/pip |
uv | bool | false | ~/.cache/uv |
yarn | bool | false | ~/.cache/yarn, ~/.yarn/berry/cache |
bun | bool | false | ~/.bun/install/cache |
composer | bool | false | ~/.cache/composer |
maven | bool | false | ~/.m2/repository |
gradle | bool | false | ~/.gradle/caches |
ccache | bool | false | ~/.cache/ccache |
go | bool | false | ~/go/pkg/mod |
rustup | bool | false | ~/.rustup |
mbx | bool | false | ~/.cache/mbx |
custom[].name | string | — | Built-in names are reserved |
custom[].container_path | string | — | Destination in the container, ~/… or absolute |
cargo shares only registry + git — ~/.cargo/bin holds binaries and stays
per-container. podbox cache list shows volumes, podbox cache prune NAME
removes one.
These volumes serve containers only. To reuse a cache you already keep on
the host, use [storage.host_caches] below.
[storage.host_caches]
Same toggles, different source: a directory you already keep on the host,
bind-mounted into the container. Use this when the host owns the cache;
use shared_caches when only containers use it.
Same built-ins as shared_caches — same relative path on both sides.
A cache whose host directory doesn't exist is skipped with a warning, not mounted: there is nothing on the host to reuse, and podman refuses to start a container whose bind source is missing. Create the directory (or run the tool once on the host) and re-enable to pick it up.
1[storage.host_caches]2npm = true3mbx = true4 5[[storage.host_caches.custom]]6name = "zig"7host_path = "~/.cache/zig"8container_path = "~/.cache/zig"| Key | Type | Default | Description |
|---|---|---|---|
cargo | bool | false | ~/.cargo/registry and ~/.cargo/git |
npm, pnpm, pip, uv, yarn, bun, composer, maven, gradle, ccache, go, rustup, mbx | bool | false | That tool's cache; see the table above for paths |
custom[].name | string | — | Label used in error messages; built-in names are reserved |
custom[].host_path | string | — | Path on the host, ~/… or absolute |
custom[].container_path | string | — | Destination in the container, ~/… or absolute |
custom mounts any host dir at any container path:
Mounts stay correct when host and container usernames differ (%h on the
host side, /home/%u on the container side). Unlike shared_caches there's
no :U remap — the host dir is already yours, and keep-id keeps it that
way inside.
Three things that bite
- One directory, two writers: a container can evict host cache entries, and any size budget applies to both.
- Share caches, not build state. Two simultaneous builds of the same workspace (cargo, mbx, …) collide on target dirs — serialise them.
- A path already in
[container.mounts].extrais refused. Two mounts for one destination would fail inside Podman with an opaque error. A hand-writtenmounts.extraentry keeps working unchanged.
[integration]
Controls which host resources are shared with the container.
Prebuilt images may ship OCI labels (podbox.integration.audio=true, …)
suggesting integration defaults. Precedence is: an explicitly set definition
value (including values from extends profiles) beats an image label, which
beats the built-in default. Setting integration.audio = false therefore
stays off even when the image label says true.
| Key | Type | Default | Description |
|---|---|---|---|
wayland | bool | false | Share Wayland socket for GUI apps |
x11 | bool | false | Run X11 apps through a per-container xwayland-satellite bridge; requires wayland = true |
audio | bool | false | Share PipeWire/PulseAudio sockets |
gpu | string/bool | "auto" | GPU passthrough (true, false, "auto", "nvidia") |
dbus | bool | false | Enable D-Bus session bus access. Talk/own/preset rules without it are rejected; a rules set without the switch stated (a pre-0.9.0 file, where the bus defaulted on) revives it with a notice |
notify | bool | false | Desktop notification forwarding |
xdg_open | bool or table | false | URI opening via host (xdg-open). The bool form uses the default allowlist (http, https, mailto); the table form is { enabled = bool, allowed_schemes = [string, ...] }, and naming schemes implies enabled = true. An empty stored list means the default list. Schemes must be RFC 3986 lowercase scheme tokens (letters, digits, +, -, .; e.g. smb, mailto, steam); invalid tokens are a parse error. Widening this list lets container-supplied URIs reach host handlers for those schemes (file managers, editors, mail clients) — add only schemes you understand; see guest.md |
clipboard | bool | false | Clipboard sharing |
sync_fonts | bool | false | Bind-mount ~/.fonts and ~/.local/share/fonts (read-only) when present on the host |
sync_icons | bool | false | Bind-mount ~/.icons and ~/.local/share/icons (read-only) when present on the host |
sync_themes | bool | false | Bind-mount ~/.themes and ~/.local/share/themes (read-only) when present on the host |
gpg_agent | bool | false | Forward GPG agent socket (S.gpg-agent). Sets GPG_TTY and GNUPGHOME |
git_identity | bool | false | Bridge host Git identity and safe.directory into the container. Needs git in the image — podbox never installs it, so this is a no-op without it |
host_exec | table | { enabled = false } | Host command execution (see [integration.host_exec] below) |
ssh_agent | bool | false | Forward SSH agent socket ($SSH_AUTH_SOCK). Requires Podman ≥ 5.6 |
X11 applications
With x11 = true, podbox runs one host-side xwayland-satellite service for
the container and mounts only that service's X socket directory. Install both
xwayland-satellite and Xwayland on the host; podbox does not add either to
the image. The service uses the same Wayland socket as native container GUI
applications, so x11 requires wayland = true and is compatible with
network.offline = true.
network.mode = "host" is rejected with X11 enabled. Host networking would
expose the host network namespace's abstract X socket, allowing DISPLAY=:0
to connect to the host X server instead of this container's isolated server.
All X11 clients inside one container share that container's X server and can
observe each other's windows and input. They cannot access X servers belonging
to other containers or the host through this bridge. X selections are bridged
to the Wayland clipboard while an X11 window is focused; this is independent
of integration.clipboard, which controls only the podbox clipboard
interceptor.
GpuMode values
| TOML value | Meaning |
|---|---|
"auto" (default) | Detect available GPU devices at runtime |
true | Enable /dev/dri (Intel/AMD) |
false | Disable all GPU passthrough |
"nvidia" | Enable /dev/dri + NVIDIA passthrough: nvidia.com/gpu=all when a host CDI spec exists, otherwise all /dev/nvidia* nodes (optional each; doctor suggests nvidia-ctk cdi generate when no CDI spec exists) |
[integration.hardware]
Device passthrough. The container has no devices until you pass them here.
Each becomes an optional AddDevice=-… — a host without it skips the device
instead of failing to start.
| Key | Type | Default | Passed through |
|---|---|---|---|
kvm | bool | false | /dev/kvm — nested virtualisation, Android emulators |
joystick | bool | false | /dev/input, /dev/uinput — gamepads and joysticks |
webcam | bool | false | /dev/video*, /dev/media* |
serial | bool | false | /dev/ttyUSB*, /dev/ttyACM* — microcontrollers |
yubikey | bool | false | pcscd socket and /dev/hidraw* — smartcards, 2FA |
usb | bool | false | /dev/bus/usb (bind-mounted, hotplug-aware) — adb, fastboot, flashers, SDR |
[integration.hardware]webcam = truekvm = truepodbox doctor reports when the host is missing a device these would need.
USB access notes: the box sees exactly the devices your host user may
open, so install the device's udev rules (android-tools /
android-udev for phones) or join the owning group (plugdev,
dialout). Only one adb server can claim a device — run
adb kill-server on the host if the box sees nothing. With SELinux
enforcing, keep security.security_label_disable = true (the default);
otherwise the box is denied the USB device type. This grants the box raw
access to every USB device you can open, including security keys and
storage — wider than serial, so enable it deliberately.
[integration.host_exec]
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Allow container to execute commands on the host |
allowlist | table | (required when enabled) | Allowed commands as alias → path pairs. Only these commands may run; enabling host-exec without at least one entry is rejected. Each value may also be a detailed table { path = "/usr/bin/…", filter = false, shim = true, refuse_home = true, timeout = 30 } |
cwd | string | "map" | What the fd-passing session does with the guest working directory (see cwd handling below) |
cwd handling
The fd-passing session carries the shell's working directory in
HostExecV2.cwd; cwd decides what the host does with it before the
command runs. The policy applies to tty sessions the same way — an
interactive session can be directed to its host project directory, or
refused, exactly like a piped one:
| Value | Behaviour |
|---|---|
"map" (default) | Translate the guest path through the container's known bind mappings — the home volume, enabled [integration.xdg_dirs], [storage.host_caches] and [container.mounts].extra binds. A path with no mapping falls back to the host $HOME and prints a warning naming the unmapped guest path to stderr, unless the allowlist entry enables refuse_home |
"home" | Ignore the guest path and request the host $HOME; entries with refuse_home = true (the default) refuse instead |
"refuse" | Refuse the request with a typed error naming the guest path; nothing is executed |
Shared cache volumes ([storage.shared_caches]) are translated only if
their host path is resolvable without talking to podman, which today means
they are not translated. Under "map" they would fall back to the host
home, but the default refuse_home guard refuses them instead.
Per-entry host-home refusal
Every allowlist entry defaults to refuse_home = true. For fd-passing
sessions this is a safety guard: if the requested working directory would
start the command in the host $HOME, Podbox refuses the request with a
typed not_allowed error instead of running it. This includes:
- an unmapped guest path under
cwd = "map"; - a request that does not carry a working directory;
- an explicit
cwd = "home"policy; - a bind mapping that resolves exactly to the host
$HOME.
Mapped project directories such as ~/Projects/... continue to work. To
restore the historical host-home fallback for one trusted command, disable
the guard explicitly:
[integration.host_exec.allowlist.git]path = "/usr/bin/git"refuse_home = falseSimple entries such as git = "/usr/bin/git" keep the safe default. The
guard applies to fd-passing HostExecV2 requests; legacy non-fd requests
remain unchanged for compatibility with older container images.
Per-entry timeouts
1[integration.host_exec]2enabled = true3 4[integration.host_exec.allowlist]5git = "/usr/bin/git"6 7[integration.host_exec.allowlist.compile]8path = "/usr/local/bin/compile"9timeout = 300A configured timeout (whole seconds, ≥ 1) kills the command's process
group and reports the death to the guest the way a signal death is always
reported (128 + signal, with the signal named in the exit report). A
fd-passing session with no configured timeout — and every legacy, non
fd-passing session — keeps the historical behaviour. TTY sessions are
never time-limited by it: an interactive child outliving its request is
correct behaviour, not a leak.
Example — restrict to git and systemctl:
[integration.host_exec]enabled = trueallowlist = { git = "/usr/bin/git", systemctl = "/usr/bin/systemctl" }Security note: no shell is involved (execve directly), so shell
injection can't happen. The per-entry argument filter is off by default
because the allowlist is already the trust boundary; set filter = true
on an entry to reject arguments containing shell metacharacters, globs or
parentheses. Either way, an allowlisted binary keeps its full host
powers (git -C /root …, find -exec …, python -c …). Prefer wrapper
scripts that pin the exact arguments over general-purpose tools.
[integration.xdg_dirs]
| Key | Type | Default | Description |
|---|---|---|---|
documents | bool | false | Mount host ~/Documents |
downloads | bool | false | Mount host ~/Downloads |
pictures | bool | false | Mount host ~/Pictures |
music | bool | false | Mount host ~/Music |
videos | bool | false | Mount host ~/Videos |
desktop | bool | false | Mount host ~/Desktop |
projects | bool | false | Mount host ~/Projects |
A directory can be mounted read-write with the detailed form, which is
written compactly under its parent:
projects = { enabled = true, read_write = true }.
[integration.export]
| Key | Type | Default | Description |
|---|---|---|---|
apps | string[] | [] | App .desktop files to export (without .desktop suffix) |
bins | string[] | [] | Binary shims to generate in ~/.local/bin |
1[integration]2wayland = true3audio = true4gpu = "auto"5dbus = true6notify = true7xdg_open = true8clipboard = true9ssh_agent = true10sync_fonts = true11sync_icons = true12sync_themes = true13 14[integration.host_exec]15enabled = true16allowlist = { git = "/usr/bin/git" }17 18[integration.xdg_dirs]19documents = true20downloads = true21projects = true22 23[integration.export]24apps = ["gedit", "nautilus"]25bins = ["rg", "gcc"][lifecycle]
| Key | Type | Default | Description |
|---|---|---|---|
quadlet | bool | false | Generate Quadlet systemd files on podbox enable |
autostart | bool | false | Start container on user login (WantedBy=default.target) |
on_stop | string | "keep" | Deprecated, no effect: Quadlet containers are always ephemeral (podman run --rm --replace); state lives in the home volume and snapshots. Setting it prints a deprecation warning |
auto_update | bool | false | Add Label=io.containers.autoupdate=registry for auto-updates |
auto_checkpoint | bool | false | Tag the current image as checkpoint-prev before update or build --rebuild; podbox rollback restores that image |
idle_timeout | string | "off" | Idle timeout before guest daemon exits ("off", "30s", "5m", `"1h") |
[lifecycle]quadlet = trueautostart = trueauto_update = trueidle_timeout = "off"[systemd]
Custom systemd unit dependencies for the generated Quadlet.
| Key | Type | Default | Description |
|---|---|---|---|
requires | string[] | [] | Units that must be active before the container (Requires=) |
after | string[] | [] | Units the container should start after (After=) |
[systemd]requires = ["postgres.service", "redis.service"]after = ["network-online.target"][dbus]
D-Bus access control via xdg-dbus-proxy. Requires integration.dbus = true.
| Key | Type | Default | Description |
|---|---|---|---|
preset | string | "none" | Preset filling talk for you: "flatpak", "gnome", "kde", "portal" (adds org.freedesktop.Notifications talk). Any preset other than "none" implies the proxy — unknown values are a parse error. Portal names are never granted via talk — they come through interface-scoped rules for notify / xdg_open (see dbus-proxy.md) |
talk | string[] | [] | D-Bus services the container can call (two-way). Adding a portal-family name re-grants the full portal surface — a warning is printed |
own | string[] | [] | D-Bus services the container can register on the host bus |
[dbus]preset = "gnome"1[dbus]2preset = "portal"3talk = [4 "org.freedesktop.Notifications",5 "org.mpris.MediaPlayer2.*",6]7own = [8 "org.mpris.MediaPlayer2.podbox_app",9]See dbus-proxy.md for the full behavior matrix.
[wayland]
The Wayland firewall. A companion service filters which protocol objects the container may use — screen capture, virtual input, and input methods are blocked unless you allow them.
| Key | Type | Default | Description |
|---|---|---|---|
firewall | bool | true | Filter Wayland protocol access through the compositor proxy |
blocked_interfaces | string[] | (see below) | Wayland globals to deny. Replaces the default list when set |
1[wayland]2firewall = true3blocked_interfaces = [4 "zwlr_screencopy_manager_v1",5 "ext_image_copy_capture_v1",6]Setting blocked_interfaces replaces the default list entirely — no merging.
The default list is also what a definition without [wayland] gets, so the
firewall blocks the same global set whether or not the table appears in the
file; it is written out only when you replace it.
Default block list
Screen capture (zwlr_screencopy_manager_v1, ext_image_copy_capture_v1),
window listing (ext_foreign_toplevel_list_v1), virtual pointers
(zwlr_virtual_pointer_manager_v1, zwlr_virtual_pointer_unstable_v1),
virtual keyboards and input methods (zwp_virtual_keyboard_manager_v1,
zwp_input_method_v1, zwp_input_method_v2, ext_input_method_v1), and
fake input (org_kde_kwin_fake_input).
Full Example
This is a reference example showing every available key with sane defaults. It is not a working config — most install lists, env vars, and mounts are placeholders. Pick only what you need; omitted keys use their defaults.
Files podbox writes (create, init, the Studio) go further: a section that
holds only default values is not written at all, so a minimal definition stays
minimal — e.g. enabling nothing under [integration] produces no
[integration] header, and the wayland firewall prints its block list only
when you change it.
1# ── Image ──────────────────────────────────────────────2[image]3base = "fedora:44" # Base image for custom builds4name = "myenv" # Image tag name5image = "ghcr.io/user/myenv:latest" # Prebuilt ref (omit for custom builds)6pull_retry = 3 # Pull retry count7pull_retry_delay = "5s" # Delay between pull retries8 9[image.packages]10install = ["git", "gcc", "ripgrep"]11remove = ["vim-minimal"]12# manager = "pacman" # omitted = auto-detect from the image name13 14[image.run]15commands = ["dnf clean all"] # Extra RUN steps16 17# ── Container ──────────────────────────────────────────18[container]19name = "myenv" # Required; used for unit names and socket paths20home = "~/containers/myenv" # Required; isolated home directory (~ expands)21shell = "bash" # Default login shell22memory = "4G" # Memory limit (e.g. "4G", "512M", omitted = unlimited)23cpus = "2.0" # CPU limit (e.g. "2.0", "0.5", omitted = unlimited)24reload_cmd = "systemctl reload …" # systemd ReloadCmd (omitted = none)25 26[container.mounts]27extra = ["~/Work:/home/user/Work:z"]28 29[container.env]30EDITOR = "nvim"31PAGER = "less"32# forward = ["HTTP_PROXY", "AWS_*"] # Host vars copied in at exec time33 34# ── Caches ─────────────────────────────────────────────35# Both opt-in, same keys, different sources:36# shared_caches → podbox volumes, shared between podbox containers37# host_caches → a directory you already keep on the host, bind-mounted in38# rustup and the ~/.cargo/bin half of cargo hold libc-bound binaries and are39# never shared.40[storage.shared_caches]41cargo = true42npm = true43mbx = false44 45[storage.host_caches]46mbx = false # ~/.cache/mbx on both sides47 48[[storage.host_caches.custom]]49name = "zig"50host_path = "~/.cache/zig"51container_path = "~/.cache/zig"52 53# ── Security ───────────────────────────────────────────54[security]55apparmor = "unconfined" # AppArmor profile (omitted = none)56seccomp = "default" # Seccomp profile (omitted = none, "unconfined" = off)57security_label_disable = true # Disable SELinux labels (needed for Wayland)58no_new_privileges = true # Block setuid escalation (sudo, su, AUR helpers)59read_only_rootfs = false # Make rootfs read-only (requires writable volumes)60userns = "keep-id" # UserNS mode: keep-id, nomap, private (omitted = keep-id)61cap_add = ["SYS_PTRACE"] # Extra Linux capabilities (omitted = none)62secrets = ["openai_key"] # Podman secrets; no value ever lands in the image63 64# [[security.secrets]] # detailed form when you need type/target/mode65# name = "aws_creds"66# type = "mount"67# mode = "0400"68 69# ── Provisioning ───────────────────────────────────────70# One-shot setup inside the container home, after dotfiles.71[[provision]]72name = "rust-toolchain" # a-z0-9_- ; unique per container73run = "mise use -g rust@stable" # executed with sh -c from the home74timeout = "5m" # 30s / 5m / 1h (default 5m)75on_failure = "warn" # warn (default) or abort76env = { FOO = "bar" } # extra variables; no PODBOX_ keys77root = false # run as root inside the container78 79# ── Network ────────────────────────────────────────────80[network]81mode = "pasta" # host, bridge, none, pasta, slirp4netns, private (default: pasta)82ports = ["8080:80"] # Port mappings (ignored in host mode)83 84# ── Integration ────────────────────────────────────────85[integration]86wayland = true # Share Wayland socket87audio = true # Share PipeWire / PulseAudio88gpu = "auto" # GPU: true, false, "auto", "nvidia"89dbus = true # Enable D-Bus session bus90notify = true # Forward desktop notifications91xdg_open = true # Forward URI opening (xdg-open)92clipboard = true # Clipboard sharing93ssh_agent = false # Forward SSH agent (needs Podman ≥ 5.6)94gpg_agent = false # Forward GPG agent95sync_fonts = true # Sync ~/.fonts / ~/.local/share/fonts (ro)96sync_icons = true # Sync ~/.icons / ~/.local/share/icons (ro)97sync_themes = true # Sync ~/.themes / ~/.local/share/themes (ro)98 99[integration.hardware] # Host device passthrough (all opt-in)100webcam = false101kvm = false102 103[integration.host_exec]104enabled = false105allowlist = { git = "/usr/bin/git" } # Alias → absolute path (required when enabled)106 107[integration.xdg_dirs]108documents = false109downloads = false110pictures = false111music = false112videos = false113desktop = false114projects = false115 116[integration.export]117apps = ["gedit", "nautilus"] # Export .desktop files for these apps118bins = ["rg", "gcc"] # Create bin shims for these commands119 120# ── Lifecycle ──────────────────────────────────────────121[lifecycle]122quadlet = false # Generate systemd Quadlet files on enable123autostart = false # Start container on user login124auto_update = false # Label for auto-updates (registry/local)125idle_timeout = "off" # Guest daemon idle timeout: "off", "30s", "5m", "1h"126 127# ── systemd dependencies ────────────────────────────────128[systemd]129requires = ["postgres.service", "redis.service"]130after = ["network-online.target"]131 132# ── D-Bus ──────────────────────────────────────────────133[dbus]134preset = "portal" # Named preset: flatpak, gnome, kde, portal, none (default when dbus is on: portal)135talk = ["org.freedesktop.Notifications"]136own = ["org.mpris.MediaPlayer2.podbox_app"]137 138# ── Wayland firewall ───────────────────────────────────139[wayland]140firewall = true # Enable Wayland protocol firewall141blocked_interfaces = [ # Blocked Wayland globals (default list)142 "zwlr_screencopy_manager_v1",143 "ext_image_copy_capture_v1",144]Omitted keys use their defaults. See the tables above for every supported key.