## Flox Environment Manifest ----------------------------------------- ## ## _Everything_ you need to know about the _manifest_ is here: ## ## https://flox.dev/docs/concepts/manifest ## ## ------------------------------------------------------------------- # Flox manifest version managed by Flox CLI version = 1 ## Install Packages -------------------------------------------------- ## $ flox install gum <- puts a package in [install] section below ## $ flox search gum <- search for a package ## $ flox show gum <- show all versions of a package ## ------------------------------------------------------------------- [install] python312.pkg-path = "python312" uv.pkg-path = "python312Packages.uv" bun.pkg-path = "bun" # gum.pkg-path = "gum" # gum.version = "^0.14.5" ## Environment Variables --------------------------------------------- ## ... available for use in the activated environment ## as well as [hook], [profile] scripts and [services] below. ## ------------------------------------------------------------------- [vars] INTRO_MESSAGE = "Entering Deathsite" UV_PYTHON_PREFERENCE = "only-system" ## Activation Hook --------------------------------------------------- ## ... run by _bash_ shell when you run 'flox activate'. ## ------------------------------------------------------------------- [hook] on-activate = """ # Ensure UV_PYTHON is set to the Flox-provided Python export UV_PYTHON=$(which python) echo "UV_PYTHON set to: $UV_PYTHON" echo "Entering Deathsite env" source .venv/bin/activate export BUN_PATH="$(which bun)" """ # # -> Set variables, create files and directories # # -> Perform initialization steps, e.g. create a python venv # # -> Useful environment variables: # # - FLOX_ENV_PROJECT=/home/user/example # # - FLOX_ENV=/home/user/example/.flox/run # # - FLOX_ENV_CACHE=/home/user/example/.flox/cache # ''' ## Profile script ---------------------------------------------------- ## ... sourced by _your shell_ when you run 'flox activate'. ## ------------------------------------------------------------------- [profile] # common = ''' # gum style \ # --foreground 212 --border-foreground 212 --border double \ # --align center --width 50 --margin "1 2" --padding "2 4" \ # $INTRO_MESSAGE # ''' ## Shell-specific customizations such as setting aliases go here: # bash = ... # zsh = ... # fish = ... ## Services ---------------------------------------------------------- ## $ flox services start <- Starts all services ## $ flox services status <- Status of running services ## $ flox activate --start-services <- Activates & starts all ## ------------------------------------------------------------------- [services] # myservice.command = "python3 -m http.server" ## Include ---------------------------------------------------------- ## ... environments to create a composed environment ## ------------------------------------------------------------------ [include] # environments = [ # { dir = "../common" } # ] ## Other Environment Options ----------------------------------------- [options] # Systems that environment is compatible with systems = [ "aarch64-darwin", "aarch64-linux", "x86_64-darwin", "x86_64-linux", ] # Uncomment to disable CUDA detection. # cuda-detection = false