Chromebook ran out of space; 16GB eMMC

Well, this is quite an interesting dilemma for me.

I accidentally over installed some packages via configuration.nix file on a 16GB eMMC Chromebook. The funny thing is that regardless of removing the packages from the config file, any time I run sudo nixos-rebuild switch, I’m met with the following error below

copying path '/nix/store/gs26rgh2nyfihrp95nj6i2254qpryipp-nix-bash-completions-0.6.8' from 'https://cache.nixos.org'...
copying path '/nix/store/8ckiaa7f3lzzb6mqvr32kavbmwf8s8fg-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/89yrk62vhhd4bp24vg8f8z7vkwb9i1vz-nixos-icons-2021-02-24' from 'https://cache.nixos.org'...
copying path '/nix/store/hay6gagxzqx3jn18g65b6fn2j51gqkxd-nixos-manpages' from 'https://cache.nixos.org'...
copying path '/nix/store/ddjx07bprz50xq86knh82yqirdp0ka8q-nixos-manual-html' from 'https://cache.nixos.org'...
copying path '/nix/store/kljcc6xric5rglhazp17ri5frc4kpyyr-noto-fonts-emoji-2.038' from 'https://cache.nixos.org'...
error: writing to file: No space left on device
copying path '/nix/store/np9agjdhlqzgdqvhang0vfqgn71bfh55-npth-1.6' from 'https://cache.nixos.org'...
error: some substitutes for the outputs of derivation '/nix/store/400scjnyd6x91y98hkqnwh711b4hvh45-nixos-manual-html.drv' failed (usually happens due to networking issues); try '--fallback' to build derivation from source
error: 1 dependencies of derivation '/nix/store/g89p6qvhmgasrlqinjn3p38wqffdnszs-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mxmvjzcdfjnq9ndnx2bkmwx85glg3i0i-nixos-system-nixos-23.05.4448.5550a85a087c.drv' failed to build

I’ve tried nix-store --gc and I"ve deleted previous generations. There doesn’t seem to be enough drive space to complete the rebuild…

Any idea what my solutions may be?

The nuclear option is to reinstall NixOS, which is easy to do. But, I’m just curious to see if this problem can be solved in some other way…

You could build the system closure on another machine and install it with nixos-rebuild --target-host <chromebook> or manually copy it over with nix copy.