What is Nostr?
samueldr /
npub1xdt…rhnt
2024-01-30 07:02:11

samueldr on Nostr: Just thought to let you know a #Nix, #Nixpkgs and #NixOS trick: If When you end-up ...

Just thought to let you know a #Nix, #Nixpkgs and #NixOS trick:

If When you end-up blowing some WIP stuff away via a bad git manip, nix-diff can help you out.

For example, take a known good revision's store path for your NixOS system build, and nix-diff $that /run/current-system. Paired with nixos-rebuild test, you can try and guesstimate what you need to do to end-up in the same previous state.
Author Public Key
npub1xdtjftw0qkzzhue5s4365pxscsq0htw0dyveqdzvl3he4aa5fkzqamrhnt