From c804d23d0f36622b6e6022a7263fc8b668257aa4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 4 Dec 2024 01:30:14 +0000 Subject: [PATCH] Add daily email for 2024-11-30 Using Nix for local application development --- source/_daily_emails/2024-11-30.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 source/_daily_emails/2024-11-30.md diff --git a/source/_daily_emails/2024-11-30.md b/source/_daily_emails/2024-11-30.md new file mode 100644 index 000000000..4e31153a4 --- /dev/null +++ b/source/_daily_emails/2024-11-30.md @@ -0,0 +1,26 @@ +--- +title: Using Nix for local application development +date: 2024-11-30 +permalink: daily/2024/11/30/using-nix-for-local-application-development +tags: + - software-development + - nix + - nixos + - linux +cta: ~ +snippet: | + I use Nix for all my application development projects. +--- + +Instead of using tools like Docker or nvm to manage dependencies for your projects, you can use Nix instead. + +Creating a Nix shell or flake for each project with its dependencies will install everything without needing containers and with the benefit of everything being locked to specific versions, [making environments reproducible][0]. + +If you need a specific version of PHP or node for a project, it will be available and different versions can be used for other projects. + +And if you need services like MySQL and you're not using NixOS, you can also use devenv to manage services, tasks and processes for each project. + +For me, Nix and devenv have [replaced Docker and Docker Compose][1] on my development projects. + +[0]: {{site.url}}/daily/2024/11/12/why-consistency-and-reproducibility-are-important +[1]: {{site.url}}/daily/2024/11/11/could-nix-and-devenv-replace-docker-compose