Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Nix
  3. nixos-generators

nixos-generators

MITNix

A collection of image builders for NixOS, now upstreamed into nixpkgs and replaced by nixos-rebuild build-image.

GitHubGitHub
2.4k stars157 forks0 contributors

What is nixos-generators?

nixos-generators was a collection of image builders for NixOS that allowed users to generate system images for various platforms and formats from a single NixOS configuration. It solved the problem of manually creating deployment artifacts for different environments by providing a unified tool. The project has been deprecated as its functionality is now integrated into nixpkgs via the `nixos-rebuild build-image` command.

Target Audience

NixOS users and system administrators who need to deploy NixOS across multiple platforms like cloud providers, virtual machines, or physical hardware.

Value Proposition

It offered a consistent, declarative way to build images for diverse targets from one configuration, reducing complexity and ensuring reproducibility. Developers chose it for its extensive format support and integration with the Nix ecosystem.

Overview

Collection of image builders [maintainer=@Lassulus]

Use Cases

Best For

  • Building NixOS images for cloud platforms like AWS, Azure, or GCP
  • Creating installation ISOs or SD card images for physical hardware
  • Generating virtual machine images for VirtualBox, VMware, or Hyper-V
  • Deploying NixOS in containerized environments like Docker or LXC
  • Producing images for specialized systems like Proxmox or KubeVirt
  • Migrating from nixos-generators to the upstream nixpkgs image builders

Not Ideal For

  • New projects starting with NixOS that should use the standard, upstream nixpkgs tooling from the beginning
  • Production environments requiring guaranteed long-term support, security updates, and active maintenance
  • Users who need specific legacy output formats or commands from nixos-generators without flexibility to adapt to new methods
  • Teams unwilling to invest time in migrating configurations to the new `nixos-rebuild build-image` workflow

Pros & Cons

Pros

Extensive Format Support

Supported over 20 image formats including cloud providers (AWS, Azure), virtual machines (VMware, VirtualBox), and containers (Docker, LXC), as detailed in the comprehensive format table.

Unified Configuration Workflow

Enabled building images for diverse platforms from a single NixOS configuration, reducing manual setup and ensuring consistency across deployments.

Proven Community Tool

Used for 8 years and built countless images, demonstrating reliability and widespread adoption before its functionality was upstreamed into nixpkgs.

Simplified Migration Path

Provides clear documentation and a format compatibility table to help users transition to the new `nixos-rebuild build-image` command.

Cons

Deprecated and Unmaintained

Officially deprecated as of NixOS 25.05, meaning no new features, bug fixes, or security updates, forcing users to migrate for future compatibility.

Migration Overhead and Gaps

Switching to upstream requires learning new commands and may involve configuration changes, with some formats like Docker having limitations (e.g., 'probably only works in podman') or requiring customization.

Potential Breaking Changes

The new `nixos-rebuild build-image` command might not perfectly replicate all behaviors or outputs of nixos-generators, leading to adjustment periods and troubleshooting.

Frequently Asked Questions

Quick Stats

Stars2,401
Forks157
Contributors0
Open Issues87
Last commit5 months ago
CreatedSince 2018

Tags

#devops#nix-community-buildbot#infrastructure-as-code#nixos#image-generation#nix#iso#image-builder#virtualization#declarative-configuration

Built With

N
Nix
N
NixOS

Included in

Nix5.0k
Auto-fetched 6 hours ago

Related Projects

nix-installernix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.

Stars3,660
Forks98
Last commit3 days ago
nixos-anywherenixos-anywhere

Install NixOS everywhere via SSH [maintainers=@Mic92 @Lassulus @phaer @Enzime @a-kenji]

Stars3,306
Forks209
Last commit2 days ago
nixos-infectnixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)

Stars1,902
Forks302
Last commit4 months ago
nixos-upnixos-up

The fastest NixOS install there is! 🏎️🏁

Stars256
Forks32
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub