Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 6, 2026·3 min de lecture

Flox — Deterministic Development Environments Powered by Nix

Flox is a developer tool that creates reproducible, shareable development environments using the Nix package ecosystem, without requiring you to learn the Nix language.

Prêt pour agents

Installation avec revue préalable

Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.

Needs Confirmation · 64/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Flox Overview
Commande avec revue préalable
npx -y tokrepo@latest install fe2a554e-78d0-11f1-9bc6-00163e2b0d79 --target codex

Dry-run d'abord, confirmez les écritures, puis lancez cette commande.

Introduction

Flox provides deterministic development environments that work the same on every machine. It uses the Nix package manager under the hood but wraps it in a CLI that feels familiar to anyone who has used apt, brew, or conda. The result is reproducible environments without the Nix learning curve.

What Flox Does

  • Creates isolated development environments with pinned package versions
  • Shares environments across teams via a simple manifest file
  • Provides access to over 100,000 packages from the Nixpkgs repository
  • Works on macOS and Linux without containers or VMs
  • Activates environments instantly with a single command

Architecture Overview

Flox wraps the Nix package manager and Nixpkgs repository behind a conventional CLI. Environments are defined in a TOML manifest file that lists packages, environment variables, and shell hooks. When activated, Flox modifies the shell PATH and environment to include only the specified packages. Nix handles the actual package building, caching, and isolation.

Self-Hosting & Configuration

  • Install with a single curl command on macOS or Linux
  • Initialize a new environment with flox init in any project directory
  • The manifest.toml file tracks all environment configuration
  • Packages are cached locally in the Nix store for fast activation
  • Supports custom Nix channels and FlakeHub for additional package sources

Key Features

  • Reproducible environments that eliminate works-on-my-machine problems
  • No Docker or VM overhead — environments run natively
  • Composable environments that can layer on top of each other
  • Built-in support for environment variables and activation hooks
  • Searchable package catalog with flox search

Comparison with Similar Tools

  • Devbox — also Nix-based; Flox adds environment sharing and composability features
  • Docker — container-based isolation; Flox runs natively without a daemon
  • conda — Python-focused environment manager; Flox covers any language
  • asdf / mise — version managers for runtimes; Flox manages entire environments including system libraries
  • direnv — environment variable switching; Flox adds full package management on top

FAQ

Q: Do I need to know Nix to use Flox? A: No. Flox provides a conventional CLI. You do not need to write Nix expressions.

Q: Can I use Flox in CI/CD? A: Yes. Flox environments can be activated in CI pipelines for reproducible builds.

Q: How large is the package repository? A: Flox uses Nixpkgs, which contains over 100,000 packages covering most languages and tools.

Q: Does it work on Windows? A: Flox supports macOS and Linux natively. Windows support is available via WSL2.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires