Merge pull request #43094 from grahamc/fix-quagga-docs
quagga module: Use a deep merge via imports instead of the shallow merge
This commit is contained in:
commit
96305ca6f2
@ -95,12 +95,10 @@ in
|
|||||||
{
|
{
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
imports = [
|
||||||
options.services.quagga =
|
|
||||||
{
|
{
|
||||||
|
options.services.quagga = {
|
||||||
zebra = (serviceOptions "zebra") // {
|
zebra = (serviceOptions "zebra") // {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = any isEnabled services;
|
default = any isEnabled services;
|
||||||
@ -111,10 +109,11 @@ in
|
|||||||
if any routing protocols are configured.
|
if any routing protocols are configured.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
} // (genAttrs services serviceOptions);
|
}
|
||||||
|
{ options.services.quagga = (genAttrs services serviceOptions); }
|
||||||
|
];
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user