From b912daedcd39851bde305d32050b6b051b21fe61 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 20 May 2024 10:39:09 +0200 Subject: [PATCH] feat: make nrb fetch from remote by default --- users/buffet/nvd.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" '')