[Nix-dev] Curious on how to configure nginx

Lluís Batlle i Rossell viric at viric.name
Wed Mar 12 11:29:33 CET 2014


On Wed, Mar 12, 2014 at 11:28:26AM +0100, Wout Mertens wrote:
> Hi,
> 
> I just discovered NixOS and I'm stoked!
> 
> Here's a question I couldn't find an answer to easily: Suppose you're
> running nginx as a proxy for a bunch of services. How would you configure
> that? Normally, I'd install the latest nginx and then change its
> configuration by adding files to /etc/nginx/conf.d etc.
> 
> Since Nix packages need to be pure, the configuration needs to be part of
> the package, right? So as a sysadmin I would then need to derive the
> package, making a new package for every config change?
> Or is there a way to make configuration items into separate packages, all
> requiring the nginx master package and resulting in a single service?

You just "rebuild" the service, not nginx, when you change the config.


More information about the nix-dev mailing list