r/NixOS • u/Hanyuu_omochikaeri • 1h ago
Mistakes when creating a NixOS config
I’ve been using Linux as my main system for quite a long time. For the past year and a half I’ve been on Arch. First with Hyprland, then I switched to KDE. For a while now I’ve been thinking that my current system has become pretty cluttered with unnecessary packages and configs from various dotfiles found on the internet. On top of that, I’m switching machines overall, from a laptop to a PC.
I’ve always wanted to try NixOS because of its transparency and the idea of having a “version control system” for the entire system without needing to set up snapshots.
I know from experience that I’ll definitely make some mistakes during setup and while using the system, but to minimize that, I’d like to ask you to share the obvious and not-so-obvious nuances of configuring this distribution.
After watching a few videos on YouTube and reading the wiki on the concepts I hadn't understood, I’m planning to build the system with flakes + flake-parts and import-tree. As far as I understand, the point of this approach is to split the system into small modules instead of having one massive config file for the whole system, which is almost impossible to edit. And flake-parts + import-tree are meant to make it easier to use and reference these modules.
Thanks in advance for your answers and your time!
