feat(modules/dgn-console): Add an activation script showing system diffs
All checks were successful
All checks were successful
This commit is contained in:
parent
876d76208c
commit
c5e15987ed
1 changed files with 8 additions and 1 deletions
|
@ -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 \
|
||||||
"$@"
|
"$@"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue