3 ms·
I would naively expect that if you run garbage collection on a regular basis that it should take no more space. Is that not true, or is running it on a regular
by yjftsjthsd-h 4y ago
I would naively expect that if you run garbage collection on a regular basis that it should take no more space. Is that not true, or is running it on a regular basis the sticking bit?
- smoldesu 4y agoI suppose you could, but Nix (and NixOS) defaults to keeping packages for an insane amount of time. 3 months of regular Nix use can accrue ~300gb of packages, which is definitely not what you'd have on something like Homebrew.
- pxc 4y agoBy default don't they keep old generations (and thus previously-installed packages) literally forever?
- quag 4y agoDoes nix and NixOS ever run the GC for you? I’ve always found that I have to manually run it at a time and place of my choosing.
- VTimofeenko 4y agoCheck out the option 'nix.gc.automatic'. It's set to false by default.
- phantomathkg 4y agoCan't you just run nix-collect-garbage?