kiskaadee ae6bdb254e docs: update license to CC BY-NC-SA 4.0 and add comprehensive README
- Replace Unlicense with upstream Creative Commons Attribution-NonCommercial-ShareAlike 4.0
- Add README with project overview and table of contents
- Add prominent Leanpub callout encouraging readers to purchase the original book
- Reference upstream flake templates for practical exercises
2026-10-22 21:36:58 -05:00

NixOS in Production, by Gabriella Gonzalez (Markdown Edition)

An ordered, cleanly formatted Markdown edition of Gabriella Gonzalez's book, NixOS in Production.


Important

📖 Support the Author — Get the Book on Leanpub!

Gabriella Gonzalez published NixOS in Production under an open license because she believes digital scarcity shouldn't lock away technical knowledge. She self-published and paid out-of-pocket for all professional editing and layout services. Along the way, she also contributed foundational improvements to the Nix ecosystem—including Terraform support for NixOS and Linux builders on macOS.

If this guide helps you or your organization, please consider purchasing the official edition on Leanpub:

👉 Purchase the Leanpub Edition of NixOS in Production

Purchasing the Leanpub edition directly supports independent technical writing and entitles you to a discount on the forthcoming print edition!


About This Project

Gabriella Gonzalez's NixOS in Production is an invaluable practical guide for introducing, configuring, and operating NixOS in enterprise and production environments.

The original book manuscript is tailored for Leanpub publication, where chapter sequence is declared through metadata files rather than filesystem naming.

When browsing on GitHub, unnumbered files sort alphabetically rather than narratively.

This repository provides an ordered, reader-friendly Markdown edition designed for:

  • Sequential reading directly in the GitHub web interface.
  • Easy reading through local Markdown viewers, offline readers, and editors.
  • Clean formatting and cross-chapter navigation.
  • Original content is preserved as-is.

Table of Contents

The chapters below are organized in their intended reading order:

  1. 01. Introduction — Scope, target audience, and philosophy.
  2. 02. Motivation — Why NixOS in production: reproducibility, declarative configuration, and eliminating state drift.
  3. 03. The Big Picture — High-level architecture and how NixOS machines are built and deployed.
  4. 04. Setup — Preparing your workstation and Nix environment.
  5. 05. Web Server — Building and provisioning your first declarative service.
  6. 06. Modules — The anatomy of NixOS modules: options, config, and abstraction.
  7. 07. Advanced Modules — Submodules, types, assertions, and composing complex services.
  8. 08. Terraform — Integrating NixOS deployments with infrastructure-as-code.
  9. 09. Continuous Integration & Deployment — Automated builds, caches, and rollout pipelines.
  10. 10. Flakes — Hermetic inputs, flake locks, and standardized outputs.
  11. 11. Integration Testing — Running declarative multi-node NixOS VM tests.
  12. 12. Containers — Packaging and orchestrating OCI/Docker containers with Nix.

Upstream Templates & Code

The code templates, Nix expressions, and sample projects referenced throughout the book are maintained in the upstream repository's templates/ directory and can be initialized with nix flake init:

# Example: initialize the server template from upstream
nix flake init --template github:Gabriella439/nixos-in-production#server

Attribution & License

Both the original work and this adapted edition are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).

S
Description
Ordered and formatted Markdown edition of Gabriella Gonzalez's book NixOS in Production
https://leanpub.com/nixos-in-production
Readme CC-BY-SA-4.0
168 KiB
0 Stars 1 Watchers 0 Forks
Languages
Markdown 100%