Using Nix for Isolated Local Application Setups Similar to Docker
Hello! Here we go again trying nix to setup things cause why not?!
I was wondering if nix could be used to setup local applications running in some sort of "isolated" ways, as when doing it via docker/containers.
For example:
- I get why using nix to setup node + pnpm (or python or whatever) locally for you to use in your daily tasks working on your repo
- but what if you need a postgres instance locally to test your code against it? How do you "deploy" (possibly) multiple postgres instances (isolated one from another, each repo having it's own for example)? Do you use nix or not for these use cases?
I was wondering if nix could be used to setup local applications running in some sort of "isolated" ways, as when doing it via docker/containers.
For example:
- I get why using nix to setup node + pnpm (or python or whatever) locally for you to use in your daily tasks working on your repo
- but what if you need a postgres instance locally to test your code against it? How do you "deploy" (possibly) multiple postgres instances (isolated one from another, each repo having it's own for example)? Do you use nix or not for these use cases?
