I’m a huge fan of nixos. I have my whole home lab using it now. I learned everything I know from reading other’s configurations. I also use the nix search site for finding configuration options.
Here is my config and others I’ve used as inspiration:
You can take this to the extreme too by erasing your root partition each boot: https://grahamc.com/blog/erase-your-darlings/
Using that method you isolate all important state on the system for backup with zfs send.