add pretty printer on system change

This commit is contained in:
Daylin Morgan 2024-07-15 13:30:02 -05:00
parent 9952a05d7d
commit 5156e5a61f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -40,6 +40,12 @@
programs.nix-index.enableBashIntegration = false; programs.nix-index.enableBashIntegration = false;
programs.nix-index.enableFishIntegration = false; programs.nix-index.enableFishIntegration = false;
system.activationScripts.diff = ''
if [[ -e /run/current-system ]]; then
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
fi
'';
nix.settings = { nix.settings = {
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];
accept-flake-config = true; accept-flake-config = true;