---
title: "How we went from supporting 50 languages to all of them"
description: "Replit replaced its ever-growing monolithic Docker OS image with Nix, giving every repl access to over 30,000 OS packages through a declarative `replit.nix` file."
url: "https://swe.quest/articles/how-we-went-from-supporting-50-languages-to-all-of-them-937edb0cd8b8b0b8"
canonical: "https://replit.com/blog/nix"
source: "Replit"
published: "2021-05-24"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 3
tags: ["build-systems","containers","developer-tools"]
---

# How we went from supporting 50 languages to all of them

A post on [Replit](https://swe.quest/sources/replit.md), published 2021-05-24, 3 min read, Announcement. Original: [https://replit.com/blog/nix](https://replit.com/blog/nix)

## Summary

Replit replaced its ever-growing monolithic Docker OS image with Nix, giving every repl access to over 30,000 OS packages through a declarative \`replit.nix\` file. The packages are prebuilt into a roughly 1 TB shared Nix store disk image that is mounted at \`/nix\` in every repl, so nothing needs to be downloaded. Nix's content-addressed store lets many versions coexist without conflicts, and each environment exposes only the packages it declares. Planned work includes \`.replit\` configuration for things like LSP and caching nix-shell environments to remove rebuild delay on run, which an edit notes has since shipped.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- package managers ([easy posts on Build systems](https://swe.quest/tags/build-systems.md?difficulty=easy))
- Docker images ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Nix, Replit, replit.nix, Docker, Zig

## Related posts

- [Dynamic version for Nix derivations](https://swe.quest/articles/dynamic-version-for-nix-derivations-ecd33aca5a26fee8.md): Replit · 2021-06-25 · Medium · 8 min read · Build systems, CI/CD, Functional programming
  Replit derives a Nix derivation's version automatically from the git short SHA instead of editing default.nix by hand for every release.
- [Faster Nix Repl Startup](https://swe.quest/articles/faster-nix-repl-startup-b982aebd762e09bf.md): Replit · 2021-10-13 · Medium · 3 min read · Caching, Performance engineering, Developer tools
  Replit removed the multi-second (sometimes tens of seconds) "Loading Nix environment" delay on repl startup by caching the environment variables exported by nix-shell after evaluating replit.nix.
- [Introducing the Replit Desktop App](https://swe.quest/articles/introducing-the-replit-desktop-app-991be13f80ab4152.md): Replit · 2023-09-14 · Medium · 6 min read · Developer tools, JavaScript, CI/CD, Deployment
  Replit now ships a native desktop app for macOS, Windows and Linux, centered on the IDE workspace, with multiple windows, editor shortcuts the browser would intercept (Cmd/Ctrl+T/W), deep linking and native Chromium devtools.
- [Introducing the Python package cache](https://swe.quest/articles/introducing-the-python-package-cache-d61a4cbacb3d2ae6.md): Replit · 2021-03-19 · Medium · 3 min read · Python, Caching, Build systems, Linux, Performance engineering
  Replit pre-populates pip's cache with the most popular Python packages and pre-built wheels so UPM can skip most downloads and compilation when a repl starts.
- [Building a web app with Nix (Because why not?)](https://swe.quest/articles/building-a-web-app-with-nix-because-why-not-53b9f7ab22ec7d0e.md): Replit · 2021-07-16 · Medium · 16 min read · Functional programming, Build systems, Python
  A toy web app is built in the Nix language by having a Python HTTP server shell out to \`nix eval\`, passing the request path and body as \`--arg\` values.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
