A comprehensive, persona-focused quick reference guide for Flox - the declarative, reproducible development environment manager.
This repository contains FLOX.md, a 1,106-line quick reference covering everything from local development to production deployment with Flox. Instead of one massive document for everyone, we use persona-specific branches so you can focus on what matters to you.
Checkout the branch that matches your use case:
| Branch | For | Focus |
|---|---|---|
main |
Everyone | Complete reference (all 1,106 lines) |
building-and-packaging-with-flox |
Build engineers | Packaging, publishing, CI/CD automation |
local-dev-with-flox |
Developers | Python/Node/C++ patterns, local services |
ops-with-flox |
SREs/operators | Production services, K8s, containers |
flox-and-cuda |
CUDA developers | GPU development, conflict resolution |
flox-and-ci-cd |
SREs/operators | Build engineers |
flox-and-k8s |
K8s engineers | Imageless pods, local testing, GitOps |
flox-and-containers |
Container engineers | OCI images, Docker/Podman, registries |
Example:
git clone https://github.com/YOUR-USERNAME/flox-md.git
cd flox-md
git checkout local-dev-with-flox # Developer-focused branch
cat FLOX.md # Read the focused guideThe guide includes:
- §0-4: Working style, configuration, Flox basics, manifest structure, common pitfalls
- §5-8: Package installation, best practices, services, manifest editing
- §9-11: Build system (manifest + Nix builds), publishing to catalogs
- §12-15: Environment composition, containerization, CI/CD, Kubernetes deployment
- §16-19: Environment conventions, quick tips, language-specific patterns (Python, C/C++, Node.js, CUDA), platform-specific guidance
git checkout local-dev-with-flox
# Read FLOX.md sections:
# - §18a: Python virtual environments
# - §18b: C/C++ development
# - §18c: Node.js patterns
# - §8: Running local servicesgit checkout building-and-packaging-with-flox
# Read FLOX.md sections:
# - §9: Build system (manifest + Nix builds)
# - §11: Publishing packages
# - §14: CI/CD integrationgit checkout flox-and-k8s
# Read FLOX.md sections:
# - §15: Kubernetes imageless deployment
# - Links to flox.dev/docs/k8s/* for detailed setupgit checkout flox-and-cuda
# Read FLOX.md sections:
# - §18d: CUDA development patterns
# - Package conflict resolution with priorities
# - Cross-platform GPU developmentEach branch's FLOX.md includes:
- Branch matrix - Shows all available branches
- Quick navigation guide - "How do I...?" lookup table
- Numbered sections (§N) - Easy cross-referencing
- Code examples - Copy-pasteable patterns
- External links - Deep dives into Flox docs
flox-md/
├── FLOX.md # Main guide (varies by branch)
├── FLOX-OMNIBUS.md # Original 1,566-line comprehensive version
├── FLOX_refactor_preserve_structure.md # 1,194-line refactored version
└── README.md # This file
Improvements welcome! To contribute:
- Fork this repository
- Create a feature branch
- Make your changes to FLOX.md
- Test across relevant persona branches
- Submit a pull request
When updating FLOX.md on main:
- Make changes on
mainbranch - Consider which persona branches need the update
- Cherry-pick or merge relevant changes to those branches
- Keep branch-specific content focused
Different users need different information:
- Developers don't need Kubernetes deployment details
- K8s engineers don't need local Python venv patterns
- Build engineers focus on packaging and publishing
- CUDA developers need GPU-specific guidance
Persona branches keep each guide focused and relevant, reducing cognitive load.
- Flox Website: https://flox.dev
- Flox Documentation: https://flox.dev/docs
- Flox GitHub: https://github.com/flox/flox
- Kubernetes Integration: https://flox.dev/docs/k8s
This documentation is provided as a community resource for Flox users. See the official Flox project for licensing information.