1
0
Fork 0
dotfiles/programs/scripts/nix-darwin-switch

14 lines
265 B
Text
Raw Normal View History

2022-02-03 22:35:52 +00:00
#!/usr/bin/env fish
pushd ~/.config/nixpkgs
rm -rf result
set system_old (readlink /run/current-system)
env TERM=xterm-256color darwin-rebuild switch --flake .
set system_new (readlink /run/current-system)
nvd diff "$system_old" "$system_new"
rm -f result
popd