Colmena builds and applies NixOS configurations to remote machines over SSH. It wraps Nix tooling and supports parallel rollout, node tags, and Nix Flakes.
Overview
Colmena is a deployment tool for NixOS, written in Rust and inspired by NixOps and morph. It stays stateless on the control side and drives remote activation by wrapping commands such as nix-instantiate and nix-copy-closure.
You define a hive of nodes in configuration files, then use commands like build or apply to compile NixOS systems and push them to selected hosts. Parallel deployment lets many nodes update at once, and tagging filters which machines receive a given apply.
The tool supports Nix Flakes through a colmenaHive flake output and can evaluate existing NixOps- or morph-style setups with small changes. Documentation covers node tagging, local deployment, secrets handling, ad hoc evaluation, remote builds, and multi-architecture examples.
Remote login relies on SSH keys; interactive password authentication is not supported. Colmena is packaged in Nixpkgs and can be installed into a shell or user profile from there or from a local checkout.
Key features
- Parallel NixOS deployment over SSH
- Hive-based multi-node configuration
- Nix Flakes colmenaHive output
- Node tagging for selective apply
- Secrets support in deployments
- Local deployment mode
- Remote build support
- Compatible with NixOps and morph configs
Use cases
- Rolling out NixOS to a server fleet
- Tagged partial deployments
- Flake-based infrastructure
- Migrating from NixOps or morph