Weekend project: brute-forcing the minimal list of NixOS modules to load for my config to work:
I predict that once I'm done, the NixOS evaluation will take half the memory and half of the time.
Let's see if I'm right :)
I got it down from 2500 to 250 modules. It's not that much faster, but takes 3.4GB instead of 4.4GB of RAM to evaluate the whole test suite.
There are some circular dependencies, so things can be shrunken further.
https://github.com/numtide/srvos/commit/fff3fc4f8174d247281b14ae8d6d8eb88ce75bf1
@zimbatm Nice, more reason to break those up!