Enable diff for system changes

This commit is contained in:
Andreas Zweili 2023-07-06 10:06:54 +02:00
parent d563ef2f2b
commit 2a45a5c01f
1 changed files with 6 additions and 0 deletions

View File

@ -149,6 +149,12 @@
];
};
system.activationScripts.diff = {
supportsDryActivation = true;
text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions