I haven't used nix for anything before, so as a complete n00b:
Is there a "standard approach" to using nix-shell(or something related?) to be able to pop into a dev environment with some services running in isolation from the rest of the world (e.g. a database, an nginx server).
This would also be useful for deploying anywhere nix is available too.
This would effectively be a replacement for docker images, I guess. Am I actually entirely mistaken, and you can't use nix for this at all (or it isn't very well-suited to the task)?
Thanks for the pointers! I'll look into them.
So it's not supported in some "first-class" way, as I originally hoped? (i.e. the functionality is built into nix)
Well, the standard way is to run NixOS and write a configuration.nix for the whole machine, but this assumes that that machine is dedicated entirely to your project's dev / deployment env.
I haven't used nix for anything before, so as a complete n00b:
Is there a "standard approach" to using
nix-shell
(or something related?) to be able to pop into a dev environment with some services running in isolation from the rest of the world (e.g. a database, an nginx server).This would also be useful for deploying anywhere
nix
is available too.This would effectively be a replacement for docker images, I guess. Am I actually entirely mistaken, and you can't use nix for this at all (or it isn't very well-suited to the task)?
Thanks for the pointers! I'll look into them.
So it's not supported in some "first-class" way, as I originally hoped? (i.e. the functionality is built into nix)
Well, the standard way is to run NixOS and write a configuration.nix for the whole machine, but this assumes that that machine is dedicated entirely to your project's dev / deployment env.