til-site/posts/the-unreasonable-effectiveness-of-vms-in-hacker-pedagogy/ #11
Replies: 1 comment 2 replies
-
I swear that there should be a tag called #PeopleWhoDontKnowAboutNix Every single developer on my team (we're 4 in total now) has exactly the same environment thanks to a single flake.nix file that I wrote. (And it wasn't that hard. Certainly easier than wasting time troubleshooting individual dev's configuration differences. And certainly less frustrating than dealing with Docker.) We haven't had a single misconfiguration problem in months now. And if any of us updates the flake.nix file (which then updates the flake.lock file), it automatically updates everyone's environment the next time they pull that file down thanks to direnv's integration with Nix. It's magical, and it entirely solves this problem. And because it's all declarative, there's no "running the same sequence of commands to get to the same configuration" imperatively. Look into it. |
Beta Was this translation helpful? Give feedback.
-
til-site/posts/the-unreasonable-effectiveness-of-vms-in-hacker-pedagogy/
Here’s a secret. If you have Vagrant and VirtualBox installed, and your colleague does too, then you can both bring up an near-totally identical blank slate Debian 12 Linux VM by running
1 2 3 4 5 6 mkdir tutorial/ cd tutorial/ vagrant init debian/bookworm64 vagrant up vagrant ssh . This works regardless of whether you or they are on Linux, Mac1, BSD, or even Windows. (Through the magic of aliasing, mkdir and cd even work in PowerShell.
https://hiandrewquinn.github.io/til-site/posts/the-unreasonable-effectiveness-of-vms-in-hacker-pedagogy/
Beta Was this translation helpful? Give feedback.
All reactions