* extraSubservices: the subservice config no longer needs to be
in a `config' attribute. So instead of extraSubservices = [ { serviceName = "foo"; config = { bla = ...; }; } ]; you can write extraSubservices = [ { serviceName = "foo"; bla = ...; } ]; svn path=/nixos/trunk/; revision=12024
This commit is contained in:
parent
f17f9e301f
commit
5235acb1d7
|
@ -54,7 +54,8 @@ let
|
||||||
svcFunction =
|
svcFunction =
|
||||||
if svc ? function then svc.function
|
if svc ? function then svc.function
|
||||||
else import (./noDir/.. + ("/" + svc.serviceName + ".nix"));
|
else import (./noDir/.. + ("/" + svc.serviceName + ".nix"));
|
||||||
config = addDefaultOptionValues res.options svc.config;
|
config = addDefaultOptionValues res.options
|
||||||
|
(if svc ? config then svc.config else svc);
|
||||||
defaults = {
|
defaults = {
|
||||||
extraConfig = "";
|
extraConfig = "";
|
||||||
extraModules = [];
|
extraModules = [];
|
||||||
|
|
Loading…
Reference in New Issue