nix3-store-diff-closures(1)
π nix3-store-diff-closures(1) π
ok so bestie, you know how sometimes you update your system and everything shifts around and you're like "what even changed"? this is the page for that. it lives in the General Commands Manual, and it's about to become your new fave. β¨
β οΈ Warning β this program is experimental and its interface is subject to change. (translation: don't build your entire personality around the exact flags, okay? π)
πΈ NAME πΈ
nix store diff-closures β show what packages and versions were added and removed between two closures
π¦ SYNOPSIS π¦
nix store diff-closures [optionβ¦] before after
β¨ EXAMPLES β¨
- Show what got added and removed between two versions of the NixOS system profile:
# nix store diff-closures /nix/var/nix/profiles/system-655-link /nix/var/nix/profiles/system-658-link
acpi-call: 2020-04-07-5.8.16 β 2020-04-07-5.8.18
baloo-widgets: 20.08.1 β 20.08.2
bluez-qt: +12.6 KiB
dolphin: 20.08.1 β 20.08.2, +13.9 KiB
kdeconnect: 20.08.2 β β
, -6597.8 KiB
kdeconnect-kde: β
β 20.08.2, +6599.7 KiB
β¦
likeβ¦ look at it. it's giving receipts. π
π DESCRIPTION π
This command shows the differences between the two closures before and after, specifically around the addition, removal, or version change of packages, plus changes in store path sizes.
For each package name in the two closures β and bestie, a "package name" here is defined as the name component of a store path excluding the version β if there's a change in the set of versions of the package, or a change in the size of the store paths of more than 8 KiB, it prints a line like this:
dolphin: 20.08.1 β 20.08.2, +13.9 KiB
No size change is shown if it's below that threshold. (sub-threshold changes are lowkey invisible, sorry π«Ά)
If the package doesn't exist in either the before or after closure, it's represented using β
(the empty set) on the appropriate side of the arrow. If a package has an empty version string, the version is rendered as Ξ΅ (epsilon).
Also!! There may be multiple versions of a package in each closure. In that case, only the changed versions are shown. So like:
libfoo: 1.2, 1.3 β 1.4
β¦this leaves open the possibility that there are other versions (e.g. 1.1) that exist in both closures. it's not hiding them from you, it's just not mentioning them. periodt.
π OPTIONS π
π Common evaluation options
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname string β pass the string string as the argument name to Nix functions.--debuggerβ start an interactive environment if evaluation fails. (your little debugging safe space π)--eval-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories. (living dangerously, iconic)--include/-Ipath β add path to search path entries used to resolve lookup paths.- This option may be given multiple times.
- Paths added through
-Itake precedence over thenix-pathconfiguration setting and theNIX_PATHenvironment variable.
--override-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref.
π§ Common flake-related options
--commit-lock-fileβ commit changes to the flake's lock file.--inputs-fromflake-url β use the inputs of the specified flake as registry entries.--no-registriesβ don't allow lookups in the flake registries.
π« DEPRECATED β use --no-use-registries instead.
--no-update-lock-fileβ do not allow any updates to the flake's lock file.--no-write-lock-fileβ do not write the flake's newly generated lock file.--output-lock-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-path flake-url β override a specific flake input (e.g.dwarffs/nixpkgs). The input path must not be empty. This implies--no-write-lock-file.--recreate-lock-fileβ recreate the flake's lock file from scratch.
π« DEPRECATED β use nix flake update instead.
--reference-lock-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-path β update a specific flake input (ignoring its previous entry in the lock file).
π« DEPRECATED β use nix flake update instead.
π Logging-related options
--debugβ set the logging verbosity level to 'debug'.--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-with-logs.--print-build-logs/-Lβ print full build logs on standard error.--quietβ decrease the logging verbosity level.--verbose/-vβ increase the logging verbosity level.
β Miscellaneous global options
--helpβ show usage information.--offlineβ disable substituters and consider all previously downloaded files up-to-date.--optionname value β set the Nix configuration setting name to value (overridingnix.conf).--refreshβ consider all previously downloaded files out-of-date.--repairβ during evaluation, rewrite missing or corrupted files in the Nix store. During building, rebuild missing or corrupted store paths.--versionβ show version information.
π₯ Options that change the interpretation of installables
--derivationβ operate on the store derivation rather than its outputs.--exprexpr β interpret installables as attribute paths relative to the Nix expression expr.--file/-ffile β interpret installables as attribute paths relative to the Nix expression stored in file. If file is the character-, then a Nix expression is read from standard input. Implies--impure.
π Note β see man nix.conf for overriding configuration settings with command line flags.
and that's the whole page, bestie!! π₯° one last thing: this whole vibe check comes from the General Commands Manual, page nix3-store-diff-closures(1) β so if you ever need to find it again, that's the name to search. go forth and diff those closures, you absolute main character. ππ
π¦ where this page comes from
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms