[Nix-dev] Why nginx config isn't placed into /etc/nginx/nginx.conf?

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Aug 9 13:38:05 CEST 2016


Hi,

On 08/09/2016 01:29 PM, Daniel Hlynskyi wrote:

> Is this intentional? I'm writing a service and want to know whether to do like
> nginx or use /etc for configs.

Generally, files should not be placed in /etc unless they are global
configuration, like /etc/resolv.conf. This way, implicit dependencies are
avoided. Service-specific configuration files like nginx.conf don't need to be
in /etc because they usually can be passed to the service via a command line
switch from the generated systemd unit.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list