print diff on activation

This commit is contained in:
Cyryl Płotnicki 2023-07-05 16:07:48 +01:00
parent aa64b3b9fa
commit 7b47838e52
2 changed files with 6 additions and 0 deletions

View file

@ -107,4 +107,7 @@ in {
};
system = { inherit stateVersion; };
system.activationScripts.diff = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
}

View file

@ -12,4 +12,7 @@
enableNsncd = true;
};
system.stateVersion = "22.11";
system.activationScripts.diff = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
}