From 9db197f600b3a8e48ccac6c6d5e39490d4770f2f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 15 Apr 2025 21:12:18 +0100 Subject: [PATCH] Add daily email for 15/04/25 --- source/_daily_emails/2025-04-15.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 source/_daily_emails/2025-04-15.md diff --git a/source/_daily_emails/2025-04-15.md b/source/_daily_emails/2025-04-15.md new file mode 100644 index 000000000..f6a4a69a7 --- /dev/null +++ b/source/_daily_emails/2025-04-15.md @@ -0,0 +1,25 @@ +--- +title: nix is like nvm, but for everything +date: 2025-04-15 +permalink: daily/2025/04/15/nix-nvm +tags: + - software-development + - nix +cta: ~ +snippet: | + nix is like nvm, but for everything. +--- + +I was recently explaining and demonstrating Nix and direnv to a colleague and showing how, when I moved into a directory, new packages or different versions of packages became available. + +If I left the directory, I was reverted back to my global packages and versions. + +In this demonstration, I was showing how I can have different versions of PHP and node for a particular project - replacing a lot of what I'd previously used tools like Vagrant and Docker for. + +I came up with a comparison between Nix and nvm - the node version manager - a tool that allows you to install multiple versions of nodejs and switch between them. + +Using Nix and direnv is more seamless, but it works for everything. + +I'm able to switch versions of PHP, MySQL, MariaDB, PostgreSQL or anything else I need with Nix. + +Not just node, and without needing containers.