This might get down voted, but here goes. I agree that the Nix documentation can be confusing and even contradictory at times. I agree that there is a steep learning curve to getting started with Nix and NixOS. However, I do not think that Nix has ever claimed or intended to be a tool that can be used easily by everyone.<p>If the ideas seem pointless and confusing to you, that's fine, don't use it. There are bunch of great package managers and linux distros that will probably suit you better. But, if you see the need for declarative package management, then Nix is for you.<p>I'm a phd student in computational science. I use a bunch of different packages on my computer and I need to know exactly what I've installed and I do not have time to debug problems from dependency hell. Nix and NixOS have been two of the most interesting and useful tools I have every used. Not only have a gained huge productivity boost from having reproducible environments and declarative package management, but I've thoroughly enjoyed the process of learning these unique tools that, for me, are leagues better than any package management system I've used in the past.<p>If it didn't work for you, I hope you find a tool that suits you better. But that doesn't mean its bad. It might just mean it wasn't intended for you.
I want to use nix it's the language that hurts for me. I keep trying to get into it, I have it on a mac laptop but Brew has gotten so good since I last used it almost 4 years ago that I go back to that.<p>Of course this is a whole env thing and not just a package thing but I dunno I'd almost rather build a container and work within that than write nix to get this functionality, the ergonomics of teh language are that galling for me.
There are a fair few nix based dev environment systems (devenv, devshell, devbox) and I've tried out a few, but devenv is the one I've stuck with. I don't typically have complicated dev environments, I just use it for installing packages and adding convenience scripts which will automatically be activated and deactivated with direnv.
I gave devenv multiple tries, and I am sorry to say there are multiple annoying issues that forced me to give up every time.<p>Some of these 200+ issues are unsolved for a fairly long time.<p><a href="https://github.com/cachix/devenv/issues">https://github.com/cachix/devenv/issues</a>
I have been using this for a while, great project!<p>Though something that annoyed me with the recent v1 release is that it changed the default repository where it pulls the package definitions from Nix's official to a fork made by the author.<p>That is dangerous and also lags behind an incredibly active and large upstream.<p>If you want to patch things, use proper Nix overrides or apply the patches using devenv code, don't fork a +80,000-big rolling release package repository.
One of my favorite things about Rust is that it uses the file system as the basis for a fast, reproducible, and composable developer environment.<p>I can unzip a directory, cd into it and cargo build it and for the most part it just works.<p>The fact that we have added shared libraries and environmental variables and so many other magic incantations that we need massively complicated second systems is an indictment of our culture of complexity.<p>I believe Go also embraces that level of simplicity.<p>And when it comes to deployment, instead of needing a simulation of a whole operating system (containers), I can just remote copy a directory and just have it work.
I've been using devenv + flake parts and so far it's done it's job perfectly. I build a rust and a node application in the ci. Both local and ci build every time. It will only fail from time to time when i make an update, otherwise no errors at all
I wish just one of these would allow for multi-instantiation of services. I have projects where I need to spin up multiple independent postgres. Instead, many of these tools repeat the patterns used in nixpkgs.
I've been a long time user of devenv.sh and can definitely recommend it as a nice wrapper around nix.<p>I often want to have some packages/tools installed when I'm working on a project and docker isn't always the right fit, which is where devenv comes it.<p>I basically use it as a generalized version of venv.
Not fast at all in my experience. Just <i>running</i> (for the first time) what would take seconds with something like `asdf` could take up to half an hour with Nix.
* Fast -- in what way? How can you even measure the speed of an environment?..<p>* Declarative -- as a developer, I don't care... Why is this important? Also, declarative means there's a bunch of imperative code hiding behind it. It just makes it harder to debug when things break.<p>* Composable -- in over 25 years of being a developer not even once did I want my dev. environment to compose with another...<p>And the article opens up with:<p>> Simple JSON-like language<p>Why on earth?.. And things down the road that announce "features" like "run processes"... Is this some kind of April 1st joke that is meant to be funny because its two weeks too late?