diff --git a/users/buffet/nvd.nix b/users/buffet/nvd.nix index 7ec73ff..c500965 100644 --- a/users/buffet/nvd.nix +++ b/users/buffet/nvd.nix @@ -9,10 +9,12 @@ exit 1 } - nixos-rebuild build --flake . || exit 1 + flake="''${1:-https://buffets.kitchen/kitchen/rice/archive/main.tar.gz}" + + nixos-rebuild build --flake "$flake" --option tarball-ttl 0|| exit 1 diff="$(${pkgs.nvd}/bin/nvd diff /run/current-system result)" rm result - nixos-rebuild switch --flake . + nixos-rebuild switch --flake "$flake" --option tarball-ttl 0 echo '***' printf '%s\n' "$diff" '')