feat(modules/dgn-console): Add an activation script showing system diffs

This commit is contained in:
Tom Hubrecht 2024-01-07 18:17:14 +01:00
parent 876d76208c
commit c5e15987ed

View file

@ -42,6 +42,14 @@ in {
};
})
];
system.activationScripts.diff = {
supportsDryActivation = true;
text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
programs.bash.promptInit = ''
FQDN="$(hostname).$(domainname)"
# Provide a nice prompt if the terminal supports it.
@ -85,6 +93,5 @@ in {
--old-bindir $OLDBIN --new-bindir $NEWBIN \
"$@"
'');
};
}