System generations and configuration.nix

Yesterday I messed my system config. After loading previous generation, config stayed the same. I know about tracking changes with git or script could be used, but is there any directory storing configuration.nix for each generation?

Looks like this has been answered at Is it possible to recover configuration.nix from an older generation?

1 Like

Thank you, that explains everything.