How do you manage your home server configuration?

https://lemmy.world/post/40254396

How do you manage your home server configuration? - Lemmy.World

I am working on setting up a home server but I want it to be reproducible if I need to make large changes, switch out hardware, or restore from a failure. What do you use to handle this?

NixOS for configuration and restic for data