From 802c90f2817c747ef62b35beff7b635e7f4ef474 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 14:24:53 +0000 Subject: krops: diff environments in the diff action too Without --environment, nix-diff skips the environment of a derivation when one of its inputs changed. A unit whose X-Restart-Triggers input changes then hides its own changes, e.g. a new RefreshOnReload= next to a changed config file. --- krops.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krops.nix b/krops.nix index 1bd24c5..6f7858d 100644 --- a/krops.nix +++ b/krops.nix @@ -96,11 +96,11 @@ 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" + nix-diff --environment --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" + "nix-diff --environment --skip-already-compared /run/current-system $system" fi "$system"/bin/switch-to-configuration dry-activate ''; -- cgit v1.3.1