NixOS containers
Ranked 13 of 14 container runtimes by recommenders
Recommended as a convenient way to run systemd-nspawn containers from a regular NixOS config. Caveat: they map the entire global Nix store into the container.
Recommended as a convenient way to run systemd-nspawn containers from a regular NixOS config. Caveat: they map the entire global Nix store into the container.
6 people gave an opinion
- recommend it
- 6
- criticize it
- 0
- approval share
- 100%
Recommended in 2 of 13 months
- November 2025: not recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: recommended
- April 2026: not recommended
- May 2026: not recommended
- June 2026: not recommended
- July 2026: not recommended
- August 2026: not recommended
- September 2026: not recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 6 people recommend itNeeds 10 or more, not met.
- Nobody criticizes itNeeds 2 to 1 or better, met.
- Recommended in 2 of 13 monthsNeeds 4 or more, not met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Convenient container setup in NixOS config
“NixOS containers are the most convenient way to do this, but those will map the entire global nix store into your container.”
Comment from 23 Mar 2026 in “Why I love NixOS” “just a few more lines to setup in a regular nixos config”
Comment from 22 Mar 2026 in “Why I love NixOS”
What people warn about
Each mark is one comment
Maps entire global Nix store
“NixOS containers are the most convenient way to do this, but those will map the entire global nix store into your container.”
Comment from 23 Mar 2026 in “Why I love NixOS” Requires config change, apply, then login
“it requires a system config change, apply, and then you need to do container start + machinectl login”
Comment from 23 Mar 2026 in “Why I love NixOS”
Other container runtimes people recommend
The four most recommended other container runtimes, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Podman | 276 | 93 | 75% | 12 | 1.5 yrs21 owners | Approved |
| OrbStack | 97 | 11 | 90% | 12 | 2 yrs3 owners | Approved |
| Apple container | 56 | 28 | 67% | 11 | — | Approved |
| gVisor | 45 | 16 | 74% | 12 | — | Approved |
| NixOS containersThis page | 6 | 0 | 100% | 2 | — | — |
What people said
5 of the 6 comments that mention it, newest first. Each links to the original comment.
“I have been using systemd-nspawn recently through NixOS containers”
“That’s really cool because I can selectively link in the parts of my desktop that I want it to have access to.”
“NixOS containers are the most convenient way to do this, but those will map the entire global nix store into your container.”
“it requires a system config change, apply, and then you need to do container start + machinectl login”
“just a few more lines to setup in a regular nixos config”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.