nix3-store-gc(1)

nix3-store-gc(1) β€” bestie, it's time to take out the trash πŸ’…πŸ—‘οΈ

okay so first things first, this page lives in the General Commands Manual (the nix3-store-gc(1) one, yes that's the name, yes it's a mouthful, we move) πŸ’–

⚠️ warning bestie, for real: This program is experimental and its interface is subject to change. Not a drill. It might glow up and change shape on you. πŸ™ˆ

✨ Name ✨

nix store gc β€” perform garbage collection on a Nix store 🧹✨


🌸 Synopsis 🌸

nix store gc [option…]

πŸ’– Examples πŸ’–

  • Delete unreachable paths in the Nix store β€” just pure, unbothered cleansing energy:
# nix store gc
  • Delete up to 1 gigabyte of garbage β€” a lil snack-sized cleanup, she's on a budget πŸ“:
# nix store gc --max 1G

πŸ¦‹ Description πŸ¦‹

This command deletes unreachable paths in the Nix store. that's it. that's the whole vibe. it's giving "spring cleaning but make it functional" 🧚✨


πŸ‘‘ Options πŸ‘‘

  • --dry-run β€” show what this command would do, without actually doing it. window shopping, no cap πŸ‘€
  • --max n β€” stop after freeing n bytes of disk space. Cannot be combined with --dry-run. pick a lane bestie, you can't manifest and commit at the same time 😭

  • --debug β€” set the logging verbosity level to debug. she wants details.
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-with-logs. four aesthetics, pick your fave πŸ’…
  • --print-build-logs, -L β€” print full build logs on standard error. receipts on full blast πŸ”₯
  • --quiet β€” decrease the logging verbosity level. shhh, she's resting 😌
  • --verbose, -v β€” increase the logging verbosity level. tell me EVERYTHING.

πŸŽ€ Miscellaneous global options πŸŽ€

  • --help β€” show usage information. always read the instructions, iconic behaviour πŸ’œ
  • --offline β€” disable substituters and consider all previously downloaded files up-to-date. airplane mode but for your store ✈️
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.conf). you're the main character, you make the rules πŸ‘‘
  • --refresh β€” consider all previously downloaded files out-of-date. "actually, we're redoing this" energy 🌸
  • --version β€” show version information. who are you? what era are you in? ⭐
πŸ“ Note: see man nix.conf for overriding configuration settings with command line flags. iykyk, go read that one too 🫢

and that's the whole page, you ate it, you understand it, no cap πŸ“πŸ’–

sign-off time: this was nix3-store-gc(1) from the General Commands Manual (the same nix3-store-gc(1) name, slaying in both header and footer). stay garbage-collected, bestie. ✨🧹🌈

πŸ“¦ where this page comes from