1.1 KiB
1.1 KiB
title | date | permalink | tags | cta | snippet | ||||
---|---|---|---|---|---|---|---|---|---|
Using Nix for local application development | 2024-11-30 | daily/2024/11/30/using-nix-for-local-application-development |
|
~ | 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.
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 on my development projects.