4 ms·
I first looked at nix-shell which you can use to create ephemeral environments just like Docker, with the difference that they are 100% reproducible and you don
by kodama-lens 3y ago
I first looked at nix-shell which you can use to create ephemeral environments just like Docker, with the difference that they are 100% reproducible and you don't need containerd or like. It is awesome to create scripts which run the same on EVERY system.
Then looked at NixOS. I geht the point of having a deklarative like OS which you can rebuild in a couple of minutes, BUT the nix language is kind of unituitive and all the tools like flake and nix packages do some magic it con't quiet understand. It does not help that the docs are kind of meh.
- LatticeAnimal 3y ago> It does not help that the docs are kind of meh In my experience, they’ve improved massively over the last few years. Most of the time, the docs directly explain how to solve some problem I have while also giving good context. I recently was messing with my boot loader and the docs were perfect
- eikenberry 3y ago> I first looked at nix-shell which you can use to create ephemeral environments just like Docker, with the difference that they are 100% reproducible and you don't need containerd or like. Sounds like podman. What is the big differentiator from it?
- yencabulator 3y agonix shell is just another shell instance, with new things brought in via $PATH etc. Not a container, still part of your "current computer environment".
- eikenberry 3y agoSo more like virtualenv?
- yencabulator 3y agoSort of, but instead of being focused around a local directory, everything is stored in /nix/store/<hash>-<name>, declaratively created and reproducible, and there's a whole Linux distro built using that.
- earthling8118 3y agoThe nix language itself is fairly simple and it is intuitive. It's the abstractions on top of it that can be more confusing. Particularly nixpkgs.