Hacker News new | ask | show | jobs
by blueflow 390 days ago
Yes, but:

  du -sh /nix
I specifically remember the glibc 2.26/ucontext desaster that triggered an rebuild of the nix world and exhausted all disk space that i had.
2 comments

     du -sh /nix
    187G /nix
This is with

    nix.gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 30d";
    };
Cleaning up some direnv versions and a `nix-collect-garbage --delete-older-than 5d` would bring it down to around 40G. For me this isn't _too much_ space, but it's easy for an update to download multiple gigs, so something to keep in mind I guess.

The size of the nix store has never really caused me issues, but ending up with a full `/boot` has. I now always set `boot.loader.systemd-boot.configurationLimit` to avoid these issues.

Yeah, if you only have nixos on a space constrained device (like my poor old chromebook), you're going to have a bad time.

The plus side though if you go all in is that you can build once on something more powerful and just copy the updates to the low powered stuff.