Indeed you're right, but the problem is that your devs' machines and your production systems are running different OS's/distributions.
Nix tries to solve this, but it isn't there just yet.
Nix tries to solve this, but it isn't there just yet.
Use the same OS and similar hardware for development and production.
Also means developers can work in whatever environment they want, but the result will be reproducible (almost) anywhere.