Backup NixOS Configurations with Git?

I know there are several ways (I have probably tried most).

What do you do? Or what is the canonical way.

Thanks!

My NixOS config simply is a Git repo.

It gets deployed onto machines using GitHub - zhaofengli/colmena: A simple, stateless NixOS deployment tool but you could do the same with nixos-rebuild -I nixos-config=....

2 Likes