|
|
|
|
|
by corethree
924 days ago
|
|
It's not simple. The nix programming language is like untyped ML. Most people aren't used to it and even if you are familiar with it it gets hella hard to read. Learning curve is huge. One docker file and a poetry file works just as well. And is simpler. It's literally the same thing but using os primitives to manage the environment rather then shell tricks. Makes more sense to me to use a dedicated os primitive for the task it was designed to be used for. Additionally docker-compose allows you to manage a constellation of environments simultaneously. This is nowhere near as straightforward with nix. I love nix but being honest here. It's not definitively the best. The biggest reason right now to avoid it is adoption. Most people won't know what to do with a shell.nix |
|
1) not just as well because docker is repeatable, not reproducible
2) not if you need GPU acceleration which is a headache in docker, but not Nix shells
> Additionally docker-compose allows you to manage a constellation of environments simultaneously. This is nowhere near as straightforward with nix.
- devenv.sh - arion - https://flakular.in/intro
> Most people won't know what to do with a shell.nix
The same was once true for Dockerfile