logoalt Hacker News

fareeshtoday at 5:47 PM5 repliesview on HN

doesn't it use up a lot of disk space compared to other distros because of the way everything is set up?


Replies

bspammertoday at 6:25 PM

Yep disk space and learning curve are the two major downsides to Nix. The former has never been a problem for me in practice, just run garbage collection once a month. The latter was a big problem, but is now mitigated for most people by LLMs.

show 1 reply
exitbtoday at 6:27 PM

Yes, however the space is not „used up” in a classic sense. It’s a cache, so you can give up some of it and reclaim your space. Fresh after a full cleanup it won’t take much more than a regular distro.

Valodimtoday at 5:52 PM

Yes. But disk space isn't exactly the most valuable resource you have as a developer/power user

moonlion_ethtoday at 6:27 PM

actually once I garbage collect, nixos actually uses up less disk space for me than other distros

dandanuatoday at 6:53 PM

Use nix.optimise.automatic = true in the config and perform nix-collect-garbage if necessary. With this it doesn't take much.