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.
Published at
2024-01-30 08:02:11Event JSON
{
"id": "cc8d763ed556f99f28ddd0f6036dab40138e5989d2cd1e0a0c494c895eec9f81",
"pubkey": "335724adcf05842bf3348563aa04d0c400fbadcf691990344cfc6f9af7b44d84",
"created_at": 1706598131,
"kind": 1,
"tags": [
[
"t",
"nix"
],
[
"t",
"nixos"
],
[
"t",
"nixpkgs"
],
[
"proxy",
"https://ap.samueldr.com/objects/e4b8a8c3-434a-4f01-a781-b3b9a367f47d",
"activitypub"
]
],
"content": "Just thought to let you know a #Nix, #Nixpkgs and #NixOS trick:\n\nIf When you end-up blowing some WIP stuff away via a bad git manip, nix-diff can help you out.\n\nFor 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.",
"sig": "1d2ffadd773964d333a0bc1434b71eb65c9c2c56370b87941773ace39da1f6fd677ad1490d6f8d90215ba85ff4237e973d76178abfce0f0b2f964b84aacce949"
}