DEV Community

Cover image for I Changed My Mind - NixOS is NOT the Best Linux
Jasper
Jasper

Posted on

I Changed My Mind - NixOS is NOT the Best Linux

Well I didn't expect to be writing this post, ever.

Most of my posts on here have just been NixOS and praising its glory to all but recently I have been greatly disliking NixOS more and more.

But what does this mean for you? It could mean nothing, or it could mean everything...

NixOS Pros

I can't say NixOS isn't great, it has so many amazingly useful features that just make using Linux so much easier.

  1. All packages are version locked. (Easy to roll back versions)
  2. All package dependencies are per package so version conflicts are prevented.
  3. Thousands of services are now easily configurable from the ground up thanks to NixOS Options.
  4. It provides a similar format to docker in that your whole system is a container that can be perfectly and precisely replicated anywhere!

These have been the reasons I stuck with NixOS for the past year.
But the way NixOS does some of these things has also been its downfall for me.

NixOS Cons

The greatest problem I have experienced with NixOS is actually development.
Working with anything that requires external libraries like C, Java or even Rust has been so much of a pain I have just given up on projects because of it.

But what is the problem exactly?
NixOS makes it very difficult to simply, install a library and have it accessible to the rest of your system.

On Arch setting up a OpenGL environment for C is as easy as:

sudo pacman -S gcc cmake make glfw glew libglv
Enter fullscreen mode Exit fullscreen mode

On NixOS you can't just add these packages to your package list and call it a day, you need to setup whatever LD_LIBRARY_PATHs are and even then I couldn't get it to work.

It turns a simple idea of, "Hey I'm going to have a crack at some C and write a OpenGL program", to, "I literally don't understand how to even get this setup, at this point I haven't even wrote any code and I'm burnt out".

I got so fed up I started looking into switching Distro's entirely.
"Where did that lead you, back to me" - Arch Linux"

Arch, dangerous but simple

Now don't worry I'm not actually abandoning NixOS. But I will be using an Arch Virtual Machine to do any kind of graphics or library dependent development.

Thanks to my guide on installing Arch is was really easy to setup and like I illustrated earlier it took my around 30 seconds to get my environment ready and I could just start coding, wonderful!

Arch does make it slightly more tedious to setup the actual operating system, but its a sacrifice I can make for being able to quickly spin up any development environment I want.

Conclusion

Arch makes the operating system tedious, but the development environment easy.
NixOS makes the operating system easy, but the development environment torture.

It really seems like there is no perfect Linux distribution. Not yet at least.

Until next time, thank for tuning in.
Jasper out.

Top comments (3)

Collapse
 
olafkfreund profile image
olafkfreund

I don't agree with your conclusion at all, but I get it. Don't give up yet. If you need help reach out to the community and we (they) will help you reach your dev goals. I'm sure.

Collapse
 
ani_chisom_17 profile image
ani chisom

Nice
Do you have any update a-z guide on using arch linux subsystem for windows

Collapse
 
jasper-at-windswept profile image
Jasper

I don't sorry!
I don't use Windows myself and have no experience with WSL.
This might be helpful though?
wsldl-pg.github.io/ArchW-docs/