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

4 comments

  1. Wulfsta
    (edited )
    Link
    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.

    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.

    5 votes
  2. [2]
    Comment deleted by author
    Link
    1. simao
      Link Parent
      Think I will skip the zfs for now, but thanks for the tips that was exactly what I was looking for!

      Think I will skip the zfs for now, but thanks for the tips that was exactly what I was looking for!

      1 vote
  3. DataWraith
    Link
    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.

    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.

    3 votes