-
-
Save ottidmes/4708d005fa1feb018fbb1fa339cbd071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixos-system-diff() { | |
local old_drv new_drv | |
old_drv=$(nix-store --query --deriver "$(readlink --canonicalize-existing /nix/var/nix/profiles/system)") && | |
new_drv=$(nix-instantiate --quiet '<nixpkgs/nixos>' --attr system) && | |
nix-diff "$old_drv" "$new_drv" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment