Hacker News new | ask | show | jobs
by max-privatevoid 7 days ago
Why would you run NixOS in a container?
1 comments

OP was about selfhosting/servers and I heard about people using Nix as a server OS, I thought that was the case here.
Yes, people run NixOS on servers. Is your only requirement for a server OS that it is small?
"Small" is not just the size on the disk (tho that is also important if you want timely snapshots), but attack surface, and keeping that small is a very important requirement.
Customizable as it is, NixOS is probably one of the best options for creating a system with minimal attack surface. It also makes snapshots unnecessary.