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 πŸ”₯

  • --debug β€” Set the logging verbosity level to debug. spill the tea, verbosely. 🍡
  • --log-format format β€” Set the format of log output; one of raw, internal-json, bar or bar-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. 🧚
  • --option name value β€” Set the Nix configuration setting name to value (overriding nix.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