Earlier quoted context omitted.
I’ve been using nixos for a solid 2 years. I was introduced to nix 5 years ago when a developer at a company I worked for introduced it for one of the developer environments. In those 3 intervening years, I went from thinking that nix was incredibly stupid to thinking that nix had some good ideas and I should try it. All of that is to say, that I have some knowledge of nix. I think most of the criticisms are fair. De…
@btobolaski, I'm most interested in nix for creating reproducible dev environments. Do you have any public Python/Poetry2Nix projects on Github that I can look at?
https://github.com/btobolaski/mood-tracker
Very basic Django app. Poetry2Nix basically worked out of the box without fiddling. Can drop into a dev shell with `nix develop`. It also demonstrates building a container for the application with exactly the same dependencies using `nix build`
https://github.com/btobolaski/text-generation-webui/tree/nix...
The opposite end of the spectrum, this adds a nix dev environment for text-generation-webui with cuda support. It is much more complex and mixes wheels with python libraries from nixpkgs. Torch comes from nixpkgs which means that it needs to build from source which takes a while. I’m currently attempting to get it working with just wheels but I’m having some trouble getting all of the native library paths fixed. This demonstrates nix’s flexibility as it pulls two separate copies of nixpkgs in order to match cuda and the nvidia drivers to what my hardware is currently running with.