7 ms·
As you can run Nix on top of any Linux system you can use it wherever you want it. Some time ago I was having a dependency-hell problem with a C++ program that
by zorked 8y ago
As you can run Nix on top of any Linux system you can use it wherever you want it.
Some time ago I was having a dependency-hell problem with a C++ program that used particular library versions which were available in Fedora (dev machine) but not Ubuntu (target) - plus there were no static versions of the library to compile the program as a static binary.
So I used nix to build the package for me. It also did not have the right version of one library, but I was able to "fork" the library for my build alone in the same configuration file. Then I was able to nix-copy-closure my program to a remote host, and it copied all dependencies over (and nothing more) and I was able to run it under Ubuntu.
Nix is great. I think it is the more proper solution to the problem people have been trying to fix with Docker.
- y4mi 8y agodocker is great though. it just fixes problems most people dont have. same with kubernetes i guess. such a great experience if you don't have to host it yourself
- tinco 8y agoI run Docker on my Nixos server. Nixos for easy reproducible operating system configuration, and Docker for application deployment so simple even application developers can do it ;) I feel Docker is a better solution to application deployment than Nix is, but NixOS is the best OS configuration out there hands down.
- deleted 8y ago[deleted]
- thallian 8y agoThat's the same thing I do and it is great. I don't need much on my host server side but having that stuff be easily configurable in one place and be mostly idempotent made my life easier.
- ris 8y ago> I feel Docker is a better solution to application deployment than Nix is. So use Nix to build your Docker images (or rather OCI images).
- svrtknst 8y ago> Nixos for easy reproducible operating system configuration I'm somewhat out of my depth here, but isn't Vagrant suitable for this purpose?
- ghuntley 8y agoWatch https://youtu.be/tl9I-R83lKo https://youtu.be/tl9I-R83lKo for a quick overview. It me in the video btw.
- sdwisely 8y agoGreat run-through, thank you!
- zymhan 8y agoNo no no. Vagrant is for spinning up dev environment VMs with a virtualization tool like VirtualBox.
- tinco 8y agoYou usually use Vagrant to provision a machine with a suitable image and then use some other tech to setup your environment on that image. Common choices are Chef, Puppet or Salt, last time I checked. You can use NixOS to replace both the OS image and the configuration tech.
- webster23 8y agoYou don't use Vagrant for your desktop, do you?
- corysama 8y agoIt also runs on Windows Subsystem for Linux. https://old.reddit.com/r/NixOS/comments/64xyd7/nix_package_manager_works_flawlessly_in_windows/ https://old.reddit.com/r/NixOS/comments/64xyd7/nix_package_m...
- ghuntley 8y agoNixOS is coming to WSL. Follow twitter.com/geoffreyhuntley for updates.