feat(modules/dgn-console): Add an activation script showing system diffs
All checks were successful
build configuration / build_storage01 (push) Successful in 49s
build configuration / build_compute01 (push) Successful in 1m11s
build configuration / build_web01 (push) Successful in 1m31s
ds-fr update / npins_update (push) Successful in 2m21s

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 = '' programs.bash.promptInit = ''
FQDN="$(hostname).$(domainname)" FQDN="$(hostname).$(domainname)"
# Provide a nice prompt if the terminal supports it. # Provide a nice prompt if the terminal supports it.
@ -85,6 +93,5 @@ in {
--old-bindir $OLDBIN --new-bindir $NEWBIN \ --old-bindir $OLDBIN --new-bindir $NEWBIN \
"$@" "$@"
''); '');
}; };
} }