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 π--maxn β 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 π
π Logging-related options π
--debugβ set the logging verbosity level todebug. she wants details.--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-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 βοΈ--optionname value β set the Nix configuration setting name to value (overridingnix.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
- 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