diff
Compare a newly built NixOS or Home Manager closure with the running system to report package additions, removals, version changes, and closure size, then apply switches unless preview was requested.
Instructions
Build the new closure and diff it against the running system (nvd, falling back to nix store diff-closures): package additions, removals, version changes as structured packages plus closure_size; the raw diff text only when it does not parse. Include the changeset in the reply and switch unless the user asked only to preview or check. For hosts requiring coordinated fleet deployment, use the repository's deployment orchestrator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | nixos | |
| flake_uri | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||