#!/bin/sh set -euo pipefail nixcfg=~/Projects/nixcfg tempdir=$(mktemp -d /tmp/tmp.nix-updateinfo.XXX) git clone --reference "$nixcfg" "$nixcfg" "$tempdir" cd $tempdir nix flake lock --update-input nixpkgs nix build ".#nixosConfigurations.$(hostname).config.system.build.toplevel" nvd diff /run/current-system ./result cd ~- rm -rf "$tempdir"