NixCon 2024

NixOS on garnix: Production-grade hosting as a game
2024-10-26 , Woanders

In this workshop we'll play a game based around deploying clusters of NixOS machines more quickly and smoothly than anyone else, and learn how garnix hosting works in the process.


Some parts of deploying a NixOS machine are extremely simple. Updating, for instance, is just a 'nixos-rebuild switch' away (or some wrapper thereof). Rolling back is just as easy.

But that doesn't account for the provisioning, and the network and hardware discovery, and the secrets management, and the zero-downtime deployments, and infrastructure-wide atomicity, and QA deployments, and staging, ... Once you consider those, things start to look a whole lot less fun.

But it doesn't have to be that way. In this workshop, we'll see how to deploy in minutes, and without any of those pesky worries. The NixOS-specific hosting platform we built takes care of everything beyond your git commit and push. The result is that we can focus on just NixOS itself, and forget the rest.

In the workshop, we will help you bring up your own server, hosting simple APIs. And we will have all participants' servers talk to each other through those APIs and hopefully have some fun!

Bring a laptop (with Nix installed)!


What level of experience in Nix is the talk addressed to?

Hopefully we can make it interesting for beginners and experts alike.

Do you allow your talk to be recorded? – yes

Julian was born in Brazil, but has lived in India, the US, Germany and now Switzerland. He is the CEO of garnix; prior to that, he variously cowrote the Haskell servant web framework, worked at a newspaper, started but never finished a philosophy PhD, and was Brazilian chess champion under 16.

This speaker also appears in:

Sönke Hahn specializes in Functional Programming and -- on and off -- has worked with nix since 2013. He has a strong interest in Agile Software Engineering, from Test-Driven Development to team organization. He is currently the CTO of garnix.io.

(They/she) Haskell, nix, and abstract math nerd.