Hacker News new | ask | show | jobs
by CuriousCosmic 1212 days ago
It can be if you use the right base OS. NixOS for all its issues checks most of the boxes for building a single purpose OS and the process of actually building one couldn't be easier. The whole process is effectively:

1. Write a config file

2. Run the command that builds the system

3. Test the system

4. (optional) Run the command that bakes the fresh system generated from the config into an image.

5. Deploy using either an image or NixOS's config based deployment tooling.

1 comments

Shouldn’t nix be able just output an image?
It absolutely can. I made the distinction between generating an image and using the nix specific infra because once you are in the ecosystem, some people prefer to use that tooling. Also there are some fancy things you can do with config based deployment that are generally harder with image based deployments.