See diff between generation configurations. Or see previous generation's configuration.nix

Yep, I’m doing it now.

I just if the default user experience with NixOS could be improved somehow. Could NixOS perhaps generate and store a diff of the /etc/nixos folder on each nixos-rebuild switch? Or maybe it can automatically track it with git and store the .git somewhere by default?

The stuff in See changes between two generations was of no help (in my case) when trying to find what a problem was between generations, because there were just so many changed packages, that it would be more productive to just try changing configuration.nix around.

(Oddly, I re-organized some code in my configuration.nix, added a few packages while basically leaving the overall end result the same as before, and now my brightness keys magically work, but I’ve no idea why, and I won’t know because now they work, and I won’t spend the huge time it takes to wade through the nix-diff output)

I had to leave NixOS for a few days to return to some other work, and once I came back, I’d already forgotten what I had modified in configuration.nix.

A feature that tracks the diff would be great!

1 Like