Add daily email for 2024-11-30

Using Nix for local application development
This commit is contained in:
Oliver Davies 2024-12-04 01:30:14 +00:00
parent 7437f01ab3
commit c804d23d0f

View file

@ -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