Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 2 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. 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.

NixOS containers compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Podman2769375%121.5 yrs21 ownersApproved
OrbStack971190%122 yrs3 ownersApproved
Apple container562867%11—Approved
gVisor451674%12—Approved
NixOS containersThis page60100%2——
See all 14 container runtimes, ranked

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”

RecommendsComment from 23 Oct 2026 in “A whirlwind tour of systemd-nspawn containers (2025)”

“That’s really cool because I can selectively link in the parts of my desktop that I want it to have access to.”

RecommendsComment from 3 Oct 2026 in “Show HN: Pi pod – Run your pi coding agent in sandboxes on your own server”

“NixOS containers are the most convenient way to do this, but those will map the entire global nix store into your container.”

MixedComment from 23 Mar 2026 in “Why I love NixOS”

“it requires a system config change, apply, and then you need to do container start + machinectl login”

MixedComment from 23 Mar 2026 in “Why I love NixOS”

“just a few more lines to setup in a regular nixos config”

RecommendsComment from 22 Mar 2026 in “Why I love NixOS”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.