# first-boot.conf — REQUIRED by first-boot.sh
# Copy to first-boot.conf and edit. Loaded from (first found):
#   1. same directory as first-boot.sh
#   2. /tmp/first-boot.conf (cloud-init runcmd downloads it)
#   3. /etc/cm4-provisioning/first-boot.conf
#   4. /var/lib/cm4-provisioning/first-boot.conf (persisted for phase 2)

# --- File server & host ---
FILE_SERVER="http://10.20.50.1:5000/files/first-boot"
HOSTNAME="guard"

# --- User ---
PI_USER="pi"

# --- Packages ---
PACKAGES="git chromium wmctrl openssh-server swaybg wlr-randr maliit-keyboard xinput-calibrator python3-gi python3-gi-cairo gir1.2-gtklayershell-0.1"

# --- Desktop & theme ---
LIGHTDM_SESSION="rpd-labwc"
GTK_THEME_NAME="PiXnoir"
WALLPAPER_MODE="crop"

# --- Paths ---
PLYMOUTH_DIR="/usr/share/plymouth/themes/custom"
WALLPAPER_PATH="/usr/share/rpd-wallpaper/splash.png"

# --- Display (reTerminal DM) ---
DSI_ROTATE="270"
SWIOTLB_SIZE="65536"

# --- reTerminal (Seeed) ---
RETERMINAL_DEVICE="reTerminal-DM"
RETERMINAL_REPO_URL="https://github.com/Seeed-Studio/seeed-linux-dtoverlays"

# --- One-shots ---
# Space-separated names of one-shot scripts (each needs name.sh + name.desktop on file server).
# Leave empty for none.
ONESHOT_SCRIPTS=""

# --- Step enable flags (1 = run, 0 = skip) ---
# Phase 1 (cloud-init → reboot): 01=hostname, 02=packages, 03=reterminal_drivers
# Phase 2 (after reboot → reboot): 04=kiosk_files, 05=splash_wallpaper, 06=lightdm,
#   07=maliit, 08=dark_theme, 09=reapply_splash, 10=cmdline, 11=oneshots,
#   12=log_permissions, 13=reboot
# ENABLE_STEP_08=0
# ENABLE_STEP_13=0
