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.
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.