Show package diffs at activation.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
./network.nix
|
||||
./nix.nix
|
||||
./packages.nix
|
||||
./show-changelog.nix
|
||||
./sudo.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
|
||||
10
common/global/show-changelog.nix
Normal file
10
common/global/show-changelog.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
{
|
||||
system.activationScripts.show-update-changelog = ''
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "[show-update-changelog] System Changelog"
|
||||
${lib.getExe pkgs.nvd} --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user