Remember the days when everyone and their pet iguana was raving about Arch Linux? You couldn't escape the ever-so-subtle "I use Arch BTW" remarks in every Linux forum. Well, move over, Arch, because NixOS is here to steal your thunder! Nowadays, it seems that you can't browse YouTube or read a blog without stumbling upon someone extolling the virtues of NixOS and how it is the epitome of computing perfection. But hey, who needs critical analysis when we can jump on the hype train and declare NixOS as the new Arch? Because that's exactly what's going on. NixOS has now become the self-proclaimed prodigy that's poised to dethrone Arch Linux as the holy grail of Linux distributions. The time is calling, my friends! It's time for you – the seasoned Linux enthusiast – to dust off your keyboard warrior capes and embark on a new crusade. So, grab your Tux plushie (or, your pitchforks if you belong to the world of devils) and let's embark on an adventure through the enigmatic world of NixOS (and let the memes commence)!
I think it’s likely that you’re trying to just add clang/llvm toolchains to your development shell like this:
But you actually want something like:
Neither actually, I think the issues I encounter happened before the llvm/clang packages get renamed to llvmPackages_16.* and one of the approach I did was adding the nix-shell initialization into .bashrc at the time to workaround my ignorance of NixOS.
There weren’t a lot of documentation to address my troubles with NixOS at the time, so yesterday evening, I reinstalled NixOS on a VM and started on reading up documentation to re-learn NixOS and trying to get it working. It still confusing however, but I’m taking my time to learn NixOS with a honest try.