Created
July 5, 2023 15:19
-
-
Save luishfonseca/f183952a77e46ccd6ef7c907ca424517 to your computer and use it in GitHub Desktop.
dry-activate diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system.activationScripts.diff = { | |
supportsDryActivation = true; | |
text = '' | |
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" | |
''; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tweaked it a little so it works for both nix-darwin and nixos: