On Ubuntu when the root partition gets full you can always run apt-get autoremove
, apt-get clean
and apt-get autoclean
to free up some space for the package manager to continue working. But the equivalent command on nixos seems to have some issues running on a full root partition:
$ nix-collect-garbage
...
error: committing transaction: database or disk is full
Quite the pickle to be in when the reason you're running nix-collect-garbage
to begin with is to clean up the full disk.
rm -r /tmp/*
. – Jeff Schaller Jan 01 '18 at 14:05/tmp
is mounted into RAM so it won't help in those cases – piegames May 15 '20 at 20:28