Thank you @danbst, this looks awesome! Barely understand it, and haven’t used containers in NixOS (or at all) but this definitely seems a cleaner solution.
On the other hand, why would you recommend using containers instead of nix-shell
? Is it because nix-shell
kind of like chroot
?
Forgive my ignorance, still fairly new to this, and right now I only use NixOS and Nix for development as setting up a dev environment is snap, but I assume the proper way to move forward in production is using containers.
Noting couple resources to myself:
+ chroot
vs Docker
+ containers vs virtual machines
+ Extra-container - Run declarative containers without full system rebuilds - NixOS Discourse thread
+ NixOS container limitations - NixOS Discourse thread
+ NixOS manual - Chapter 39. Container Management
+ Is this a viable alternative to Docker? I’m about to launch a fairly large new p... | Hacker News
+ r/haskell - What are your deployment workflows/tools
+ NixOPS Container