go with nixos such a great os with reproducibility easy to rollback if something goes wrong and use gitea server for backing up configuration files. remember to use different midules and flakes is better. but ubuntu at beginner level nix is steep learning curve.
Discussion
I think the learning curve of this is not what I'm looking for right now, but it is on my radar to experiment with later.