15 lines
322 B
Nix
15 lines
322 B
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
config = {
|
|
system.activationScripts.diff = {
|
|
supportsDryActivation = true;
|
|
text = ''
|
|
if [ -h /run/current-system ]
|
|
then
|
|
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
|
fi
|
|
'';
|
|
};
|
|
};
|
|
}
|