1. 21
  1.  

  2. 6

    Anyone here who has some experience using Nix (either the full OS or only the package manager on a more conventional Linux) in a server environment?

    1. 5

      Yes. I run a few dozen servers on NixOS, for a contract. A few for personal. I know of at least one group launches 10’s of thousands of servers a month with NixOps and NixOS. I’ve begun introducing Nix (the package manager) for some use at work.

      I’d be happy to answer your questions!

      1. 1

        Great! I’m still reading about Disnix to get a better picture what a full setup would look like, with the context of replacing a Chef installation.

        Do you use Disnix and/or NixOps?

        Can you use local versions of nix packages? Let’s say that for example the released buildGoPackage is on version 1.7, and I want to switch it to 1.8.1 now, can I make that work?

        1. 3

          Great! I’m still reading about Disnix to get a better picture what a full setup would look like, with the context of replacing a Chef installation.

          Do you use Disnix and/or NixOps?

          I use NixOps and not Disnix. I think Disnix is less well used compared to NixOps.

          Can you use local versions of nix packages?

          You bet. You can mix and match Stable and Unstable, too.

          Let’s say that for example the released buildGoPackage is on version 1.7, and I want to switch it to 1.8.1 now, can I make that work?

          You could, however you would need to make the patch for that to work. I’m sure #NixOS on Freenode would be thrilled to help out.

      2. 4

        I run my personal server (jb55.com) with nixos on linode.

        It hosts:

        1. a mail server (via nixos-mailz)
        2. a prosody xmpp server
        3. some personal projects/contracts

        This is what the config looks like: https://github.com/jb55/nix-files/blob/charon/machines/charon/default.nix

        which is layered on the default config for all my machines: https://github.com/jb55/nix-files/blob/charon/configuration.nix

        administrating a nixos server is pretty simple, no imperative actions needed, everything is generated from the configuration.nix. It’s also some piece of mind if I ever have to migrate to another machine. I can copy my nix expressions over and have an identical setup.

        1. 1

          Thanks, that is actually helpful.