[Nix-dev] Re: Services.. / I'd like to copy paste the files in most simple cases

Ludovic Courtès ludo at gnu.org
Fri Mar 7 14:27:17 CET 2008


Hi,

Marc Weber <marco-oweber at gmx.de> writes:

> So what input does one service file need?
> At least
> { thisConfig # configuration for this service
> , allConfigurations # all configuration in case you need information
>                     # about other services as well (apache or whatsoever)
>
> , allPackages
> , lib
> } : {
>   doc = # the optionlist
>   service = # the service implementation generating the upstart files
> etc
> }
>
> Then you can just copy the file, adjust and role on.
> Do you like this?

Personally, I can live with the current scheme.  One one hand, it's
handy to have all options in one place, in `options.nix': it allows you
to look at all the available options without having to browse Upstart
scripts.

OTOH, the proposed scheme surely helps see everything pertaining to a
given service at once.

Thanks,
Ludovic.




More information about the nix-dev mailing list