From 9597ddad9199b3f167587fae63018f912e42c426 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 13:57:52 +0000 Subject: krops: diff derivations in the diff action diff-closures only shows version changes and size changes of 8 KiB or more, so configuration changes go unseen. nix-diff shows them. It comes from nix-shell -p with the target's nixpkgs if the target doesn't have it. --- krops.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/krops.nix b/krops.nix index d9885f8..1bd24c5 100644 --- a/krops.nix +++ b/krops.nix @@ -95,6 +95,13 @@ diff = /* sh */ '' nix --extra-experimental-features nix-command \ store diff-closures /run/current-system "$system" + if command -v nix-diff >/dev/null; then + nix-diff --skip-already-compared /run/current-system "$system" + else + NIX_PATH=${lib.escapeShellArg target'.path} \ + nix-shell -p nix-diff --run \ + "nix-diff --skip-already-compared /run/current-system $system" + fi "$system"/bin/switch-to-configuration dry-activate ''; }} -- cgit v1.3.1