# punktfunk host config for Bazzite (~/.config/punktfunk/host.env).
#
# Bazzite ships gamescope, PipeWire and the NVIDIA driver, so the default backend here is
# gamescope: the host spawns a headless gamescope per session at the client's exact mode and
# captures its PipeWire node — no separate desktop session to bring up. Set PUNKTFUNK_GAMESCOPE_APP
# to what you want to run inside it (e.g. `steam -gamepadui` for a SteamOS-like couch session).

XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

# gamescope backend: spawned per session, no compositor login required.
PUNKTFUNK_COMPOSITOR=gamescope
PUNKTFUNK_VIDEO_SOURCE=virtual
PUNKTFUNK_GAMESCOPE_APP=steam -gamepadui

# gamescope hosts its own EIS input socket — input lands in the nested session.
PUNKTFUNK_INPUT_BACKEND=gamescope

# GPU zero-copy capture (dmabuf -> CUDA -> NVENC). Auto-falls back to CPU if unavailable.
PUNKTFUNK_ZEROCOPY=1

#RUST_LOG=info

# To drive the full Plasma/GNOME desktop instead of a nested gamescope, switch to:
#   PUNKTFUNK_COMPOSITOR=kwin    (and run inside a KDE session — WAYLAND_DISPLAY/XDG_CURRENT_DESKTOP set)
#   PUNKTFUNK_INPUT_BACKEND=libei
