3 ms·
On the other hand, which alternatives are easier? I'm a NixOS fan, but have to use Docker at work occasionally and I have the feeling they are both difficult,
by k__ 10y ago
On the other hand, which alternatives are easier?
I'm a NixOS fan, but have to use Docker at work occasionally and I have the feeling they are both difficult, but in "their" ways.
- atemerev 10y agoNixOS is a whole another can of worms. Nix-env conflicting with system profile, lagging Python packages, etc etc.
- k__ 10y agoNot a Python dev, so I don't know about that. But could you elaborate on the "Nix-env conflicting with system profile" thing? :)
- atemerev 10y agoThis, for example: https://github.com/NixOS/nixpkgs/issues/18778 https://github.com/NixOS/nixpkgs/issues/18778 I support the idea of declarative configuration and dependencies, but I also realize that this is a very very hard thing to do, when each language have its own preferred package manager and they all expect a mutable environment. (I tried NixOS for 2 months and switched back to Ubuntu. The issues are too numerous so far, despite heroic work of NixOS dev team)
- Ixiaus 10y agoWhat's hilarious is that we use both nixos and docker...
- atemerev 10y agoThis is actually a good idea, they complement each other nicely.
- Ixiaus 10y agoNo. They do not. Docker wants to manage containers but nix wants them in the store. I went so far as writing a derivation and tool for pulling a container into the nix store without docker so it could be docker loaded. I really don't like docker.
- fizzbatter 10y agoAt the very least Nix would make your Docker builds more reliable. Granted, you could then start making arguments for "why use Docker at all", but i can't answer that.
- k__ 10y agoWhy not? I the configuration.nix of NixOS is a nice, small way to get your dev machines configured and installed with the stuff you like. Just copy it on your new machine and off you go :) I don't know if I would ever use Nix instead of the more language specific packet managers.
- Ixiaus 10y agoNix derivation and nix store managed artifacts is a superior model to many language specific package managers (though the learning curve is non-trivial), we use it with Haskell extensively, for instance.
- fizzbatter 10y agoI can't wait for someone to write a great book on Nix. I was so lost in it. I had it running on my home server, and needing to compile my own things because of what Nixpkgs lacked was a constant struggle. It was a very frustrating experience. A frustration which was led by the fact that i could tell how powerful Nixos was - if only i could grok it.
- Ixiaus 10y agoYeah a book on nixos would be valuable I think. Understanding nixos really comes down to reading all the docs then trying to accomplish what you need to do, learning by doing and reading source code. I love nix, my biggest gripe would be that the Nix language is dynamically typed...