DeterminateSystems/zero-to-nix

MDXzero-to-nix.com

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.

nixnixosnixlangdocumentationflakes
Crecimiento de estrellas
Estrellas
1.3k
Forks
79
Crecimiento semanal
+6
Issues
38
5001k
ene 2023mar 2024jun 2025ago 2026
README

Zero to Nix

FlakeHub

Zero to Nix is your guide to learning Nix and flakes. It was created and is maintained by Determinate Systems.

Setup

Make sure that you have Nix and direnv installed, then:

# Activate Nix development environment
direnv allow

Developing the site

Run locally

To run the site in development mode (with live reload when you make changes):

dev

To run the site in preview mode (with a static web server and no live reload):

preview

# Alternatively
nix run

Then open your browser to http://localhost:3000.

Run checks locally

The site has some CI checks that run in GitHub Actions, like link checking. To run the whole CI suite locally:

ci

Build locally

To ensure that the site can build properly in response to changes:

build

As an alternative, you can run the whole CI suite, which also builds the site.

Format code

To ensure that everything is properly formatted:

format

Publishing

The Zero to Nix site is automatically published on Vercel, which also provides deploy previews for pull requests.

Technologies

Zero to Nix's "stack" 🥞:

  • Astro for content management and site generation
  • MDX for content
  • Tailwind for CSS

Suggested VS Code settings

If you happen to use VS Code as your editor, we recommend adding these extensions:

We also recommend adding these settings to your local .vscode/settings.json:

{
  "[mdx]": {
    // By default, this extension overwrites our one-sentence-per-line policy
    "editor.formatOnSave": false,
    // This is a nice helper for longer sentences
    "editor.wordWrapColumn": 100,
    "editor.wordWrap": "wordWrapColumn",
  },
  // Format everything using the Prettier config
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // Keep junk out of your search results
  "search.exclude": {
    "**/.direnv": true,
    "**/.git": true,
    "**/node_modules": true,
    "dist": true,
    "package-lock.json": true,
    "*.d.ts": true,
    "tmp": true,
  },
}
Repositorios relacionados
unionlabs/union

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

Rustcrates.ioApache License 2.0blockchaincosmos
union.build
73.8k3.9k
NixOS/nixpkgs

Nix Packages collection & NixOS

NixMIT Licensenixpkgsnix
26.1k20k
NixOS/nix

Nix, the purely functional package manager

C++GNU Lesser General Public License v2.1nixfunctional-programming
nixos.org
17.7k2k
jetify-com/devbox

Instant, easy, and predictable development environments

GoGo ModuleslibraryApache License 2.0devboxdevelopment-environment
jetify.com/devbox/
12.3k358
nix-community/home-manager

Manage a user environment using Nix [maintainer=@khaneliman, @rycee]

NixMIT Licensenixnixpkgs
nix-community.github.io/home-manager/
10.3k2.5k
xonsh/xonsh

🐚 Python-powered shell. Full-featured, cross-platform and AI-friendly.

PythonPyPIOtherxonshdevops
xon.sh
9.6k740
teslamate-org/teslamate

A self-hosted data logger for your Tesla 🚘 [main maintainer=@JakobLichterfeld]

ElixirGNU Affero General Public License v3.0teslatesla-api
docs.teslamate.org
9k1k
cachix/devenv

Fast, Declarative, Reproducible, and Composable Developer Environments using Nix

Rustcrates.iocliApache License 2.0developer-toolsdevenv
devenv.sh
7.6k561
RubyMetric/chsrc

chsrc 全平台通用换源工具与框架. Change Source everywhere for every software

CcliGNU General Public License v3.0gemlinux
chsrc.run
6.9k285
nix-darwin/nix-darwin

Manage your macOS using Nix

NixMIT Licensedarwinnix
nix-darwin.org
5.9k659
nix-community/awesome-nix

😎 A curated list of the best resources in the Nix community [maintainer=@cyntheticfox]

awesomeCreative Commons Zero v1.0 Universalawesome-listawesome
nix-community.github.io/awesome-nix/
5.4k200
digitallyinduced/ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

HaskelllibraryMIT Licensehaskellpostgresql
ihp.digitallyinduced.com
5.4k225