Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


I 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.


By default don't they keep old generations (and thus previously-installed packages) literally forever?


Does 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.


Check out the option 'nix.gc.automatic'. It's set to false by default.


Can't you just run nix-collect-garbage?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: