11
votes
Tips to use NixOS on a server?
I see some people using NixOs on their servers. I would like to try it out to self host some services and learn about NixOs.
I use hetzner and they have an NixOs iso available so I can just use that to install NixOs. But how do people manage remote instances of NixOs? They would just use ansible or something like it, to run nix on the host, or is there a better way?
Thanks
I have a VPS that I run NixOS on, I'll share my configs in a few hours.
Edit: still plan on doing this, just got busy and didn't have the chance to.
Edit 2: See this topic.
Think I will skip the zfs for now, but thanks for the tips that was exactly what I was looking for!
I haven't experimented with NixOS on the server yet, but there's a dedicated tool, NixOps, for deploying nix packages to (among other things) cloud servers.
You may find this useful: https://christine.website/blog/backslash-kubernetes-2021-01-03 - someone running NixOS on Hetzner.
Discussion on Lobsters: https://lobste.rs/s/p5mc01/kubernetes