nixos-config/shared/activation.nix

8 lines
216 B
Nix
Raw Normal View History

2023-05-16 09:51:30 +02:00
{ lib, pkgs, ... }:
{
system.activationScripts.report-nixos-changes = ''
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
nvd diff $(ls -dv /nix/var/nix/profiles/system-*-link | tail -2) || true
2023-05-16 09:51:30 +02:00
'';
}