Comment on How are you keeping on top of fleet updates?

dtc@lemmy.pt ⁨1⁩ ⁨year⁩ ago

I’m in the process of migrating my servers to NixOS. It takes a lot of time and the learning curve is steep, but I have one config shared for all the servers and PCs. I have setup the servers to automatically pull the latest configuration everyday and even restart if there’s a kernel update.

This means I just need to update my laptop and push the changes to the repository, and all the servers will also update.

I haven’t had this setup long enough to know if things will break unexpectedly with updates tho. NixOS has a great feature where you can rollback to a previous configuration (generation) with a single command. You can always keep using containers to isolate updates, if you want (Nix allows you to declare those in the config as well).

As an example, you can take a look at my config.

source
Sort:hotnewtop