nix3-store-optimise(1)
π nix3-store-optimise(1) π
okay bestie, this page is from the General Commands Manual and it's literally called nix3-store-optimise(1). let's get into it π«Ά
β οΈ Warning This program is experimental and its interface is subject to change. no cap. don't get too attached to the vibes, they might shift on you π
β¨ Name β¨
nix store optimise β replace identical files in the store by hard links π¦
πΈ Synopsis πΈ
nix store optimise [optionβ¦]
π Examples π
- Optimise the Nix store:
nix store optimise
that's it. that's the whole example. iconic. π
π Description π
so what does this actually do, bestie? it deduplicates the Nix store: it scans the store for regular files with identical contents, and replaces them with hard links to a single instance. boom. one file, many doors. πͺβ¨
lowkey important note: you can also set auto-optimise-store to true in nix.conf to perform this optimisation incrementally whenever a new path is added to the Nix store. and to make that efficient, Nix maintains a content-addressed index of all the files in the Nix store in the directory /nix/store/.links/. ποΈ
π₯ Options π₯
π Logging-related options π
--debugβ Set the logging verbosity level todebug. spill the tea, verbosely. π΅--log-formatformat β Set the format of log output; one ofraw,internal-json,barorbar-with-logs. pick your aesthetic. β¨--print-build-logs,-Lβ Print full build logs on standard error. give me the whole story, not a summary. π--quietβ Decrease the logging verbosity level. shhh π€«--verbose,-vβ Increase the logging verbosity level. tell me EVERYTHING π’
π Miscellaneous global options π
--helpβ Show usage information. when in doubt, ask for help. self care. π--offlineβ Disable substituters and consider all previously downloaded files up-to-date. we're off the grid, bestie. π§--optionname value β Set the Nix configuration setting name to value (overridingnix.conf). you're the boss now π--refreshβ Consider all previously downloaded files out-of-date. out with the old π--versionβ Show version information. who even am I πͺ
Note See man nix.conf for overriding configuration settings with command line flags. iykyk π
π©· that's the whole page π©·
and that's a wrap on nix3-store-optimise(1) from the General Commands Manual. go optimise something, you main character ππ₯ periodt.
π¦ 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