# /etc/default/fbx-updater — environment for fbx-updater.service.
#
# All updater configuration goes through EXTRA_ARGS (whitespace-split
# by systemd because the unit uses a single `$` expansion).
#
# Production (storefront chain, stable channel — THE install/update path):
#   EXTRA_ARGS=--layout storefront --manifest-base-url https://flightbagx.com/groundstation/firmware
#
# Dev against the local storefront:
#   EXTRA_ARGS=--layout storefront --manifest-base-url http://<mac>:3000/groundstation/firmware
#
# Beta-program device (auto-pulls whatever latest-beta.json points at):
#   EXTRA_ARGS=--layout storefront --manifest-base-url https://flightbagx.com/groundstation/firmware --channel beta
#
# Available flags:
#   --layout NAME             storefront (FlightBagX firmware chain: signed
#                             pointer {"version"}, releases at /<version>/)
#                             or github (legacy: pointer {"tag"}, releases
#                             at /releases/<tag>/, optional --token-file).
#                             Default github for back-compat; new installs
#                             use storefront.
#   --manifest-base-url URL   Repo root. Updater fetches /latest.json + .sig
#                             (or /latest-<channel>.json for non-stable
#                             channels) to resolve "latest", or goes
#                             straight to the per-release manifest for a
#                             pinned tag.
#   --manifest-url URL        Alternative: literal manifest URL, no tag
#                             resolution. Useful for local-file:// tests.
#   --channel NAME            stable (default), beta, canary, … Selects
#                             the pointer file. Ignored when a specific
#                             tag is pinned (update_pin v1.2.3).
#   --token-file PATH         Read a GitHub PAT from this file. Legacy
#                             github layout only.
#   --asset-base BASE         Override the asset-download directory. Defaults
#                             to dir-of(resolved manifest URL).
#
EXTRA_ARGS=

# Bundle ingest retention. fbx-bundle-ingest.sh keeps the most recent
# N bundles in /var/lib/fbx/applied/ and /var/lib/fbx/rejected/.
# Defaults if unset: applied=3, rejected=5.
#BUNDLE_APPLIED_RETAIN=3
#BUNDLE_REJECTED_RETAIN=5
